FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
10/30/13 03:41 AM (12 years ago)

help fatal execption

hi guys, sorry to bother you again, finally got eclipse to work yesterday, had very screen working, just had to adjust the buttons, came back to the project this morning and the app sticks at the splash screen and then crashed with app stopped unexpectedly, tried few things didnt work, so deleted file, cleaned workspace, redownled from buzz, still same error, tried on mac, same error, heres the logcat 10-30 10:33:35.648: E/AndroidRuntime(4184): FATAL EXCEPTION: main 10-30 10:33:35.648: E/AndroidRuntime(4184): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cumbriacouncil/com.cumbriacouncil.WB_screen_menuImage}: java.lang.ClassCastException: android.widget.ImageView 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651) 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.os.Handler.dispatchMessage(Handler.java:99) 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.os.Looper.loop(Looper.java:130) 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.app.ActivityThread.main(ActivityThread.java:3687) 10-30 10:33:35.648: E/AndroidRuntime(4184): at java.lang.reflect.Method.invokeNative(Native Method) 10-30 10:33:35.648: E/AndroidRuntime(4184): at java.lang.reflect.Method.invoke(Method.java:507) 10-30 10:33:35.648: E/AndroidRuntime(4184): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) 10-30 10:33:35.648: E/AndroidRuntime(4184): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) 10-30 10:33:35.648: E/AndroidRuntime(4184): at dalvik.system.NativeStart.main(Native Method) 10-30 10:33:35.648: E/AndroidRuntime(4184): Caused by: java.lang.ClassCastException: android.widget.ImageView 10-30 10:33:35.648: E/AndroidRuntime(4184): at com.cumbriacouncil.WB_screen_menuImage.onCreate(WB_screen_menuImage.java:207) 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 10-30 10:33:35.648: E/AndroidRuntime(4184): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615) cheers guys
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
10/30/13 06:04 AM (12 years ago)
if this is your first time in eclipse..you need to know that you have to select google apis instead of android apis. to do this -Select project right click on it ans go to properties>android>google apis. after that add google pay services to your project http://www.buzztouch.com/forum/thread.php?tid=F87D29BA17032DE4EF7DBDE&command=isSearching&currentPage=1&topicTitle=play&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= post what happens..
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/30/13 06:26 AM (12 years ago)
lol your a star, you know i went through everthing, spent hours trying to figure it out, already had google services there, had just forgot to put it in thanks dude do you know how to move rows of buttons round the screen, susan has put some code up, that helps centre the buttons, but for some reason my other 2 rows have vanished ? thanks dude
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
10/30/13 06:38 AM (12 years ago)
haha...you will become a star for some1 2 months later... i had asked the same problems few months back.. so did your errors run away?? and i dont know anything about row buttons round the screen ... cheers
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/30/13 07:01 AM (12 years ago)
yeah, there wasn't any errors, just failed to launch the screen, i know through xcode that its normally something rely small, that your forgetting to do, in this case , something obvious that i had already learned lol thanks for the heads up dude sean
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
10/30/13 07:22 AM (12 years ago)
cheers..
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/30/13 08:31 AM (12 years ago)
would you know how i can add a box at the top of a screen in eclipse,i cant move the buttons down the screen, and i dont wanna mess with the code in buzz, as im designing app for both ios and android, but im thinking if i could put invisible box at the top of screen the buttons might start below it (im trying to get image at the top with buttons beneath,i know buzz has screen with image, but this is a button menu not tabbed ) cheers dude
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/30/13 08:41 AM (12 years ago)
would you know how i can add a box at the top of a screen in eclipse,i cant move the buttons down the screen, and i dont wanna mess with the code in buzz, as im designing app for both ios and android, but im thinking if i could put invisible box at the top of screen the buttons might start below it (im trying to get image at the top with buttons beneath,i know buzz has screen with image, but this is a button menu not tabbed ) cheers dude
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
10/31/13 01:17 AM (12 years ago)
hey ! i feel you will have to mess with code for doing this.. you will have to play with the corresponding xml file in the eclipse.. i had worked to put the admob banner in the top so that the web view dosent get covered below the ad and the webview starts where the advertisment ends you may try this see if you have a invisible box in any one of the plugins (i think cp streamer has it) go to cp_stream.xml .in graphical layout double click on the box . then it directs you to higlighted code in the xml file.just copy it and paste it in your bt_menu.xml see what happens obviously back up every stage of your project when you change the code. gud luk.
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/31/13 03:45 AM (12 years ago)
havnt got cp_screen.xml dude, ive tried playing with the graphical side in the layout, but nothing changes cheers
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/31/13 03:46 AM (12 years ago)
ps im working with 2.2 the blank box has to be api 14 and im working with 8 , as i couldnt get eclipse to work with anything higher cheers
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
10/31/13 03:52 AM (12 years ago)
ok ..i will see if i can get invisible box on the top to work with menu buttons when i get on eclipse ...right now in office cheers
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/31/13 04:40 AM (12 years ago)
thanks dude, its screen_menubuttons.xml im trying to play with, susan has given us some code to center them which go,s in screen_menubuttons.java but for the life of me i cant get the buttons to just move down, even considering putting splash there instead, but i dont want a splash screen on the ios one, if you could figure it out how the buttons move down, that would be great dude, and i would owe you one. cheers sean
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.