Discussion Forums  >  Crashes, Memory Warnings

Replies: 7    Views: 106

James R
Aspiring developer
Profile
Posts: 31
Reg: Aug 15, 2012
sydney
3,310
08/16/12 08:05 AM (11 years ago)

App Force Closes

Woo first post! Awesome idea this site and great community. I have a problem where when I open my app in the emulator I get a force close error (as soon as it starts to open). Log: FATAL EXCEPTION: main Java.lang.NullPointerException etc I've removed almost all the pages in case there were some errors and now just have a home page, but still getting the error! I've reset the emulator and all. Any help would be greatly appreciated, James
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/16/12 08:40 AM (11 years ago)
Welcome! Unfortunately, that error could be 1000's of things! To get a more accurate error report (and some help!) enable logcat in eclipse and post the logcat output.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/16/12 09:14 AM (11 years ago)
Check your home screen tab layout. Fred
 
James R
Aspiring developer
Profile
Posts: 31
Reg: Aug 15, 2012
sydney
3,310
like
08/18/12 01:09 AM (11 years ago)
Thanks for the speedy responses! So anytime I import a code I get the red cross in the src folder. I cant import any apps as I keep getting these errors. Any further help much appreciated! James Description Resource Path Location Type GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 702 Java Problem Overlay cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 709 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 689 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 702 Java Problem OverlayItem cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 729 Java Problem OverlayItem cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 729 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 709 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 712 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 733 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 746 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 729 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 733 Java Problem OverlayItem cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 754 Java Problem OverlayItem cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 754 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 748 Java Problem The method getPoint(double, double) from the type BT_screen_map refers to the missing type GeoPoint BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 748 Java Problem Overlay cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 765 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 760 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 760 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 754 Java Problem MapController cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 778 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 774 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 769 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 768 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 819 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 815 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 794 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 778 Java Problem OverlayItem cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 842 Java Problem ItemizedOverlay cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 842 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 835 Java Problem Overlay cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 829 Java Problem OverlayItem cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 843 Java Problem The method boundCenterBottom(Drawable) is undefined for the type BT_screen_map.ChildLocationsOverlay BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 846 Java Problem OverlayItem cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 851 Java Problem OverlayItem cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 859 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 870 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 112 Java Problem Overlay cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 110 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 103 Java Problem MapActivity cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 85 Java Problem The import com.google cannot be resolved BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 81 Java Problem The import com.google cannot be resolved BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 80 Java Problem The import com.google cannot be resolved BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 79 Java Problem The import com.google cannot be resolved BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 78 Java Problem The import com.google cannot be resolved BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 77 Java Problem The import com.google cannot be resolved BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 76 Java Problem The import com.google cannot be resolved BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 75 Java Problem MapActivity cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 266 Java Problem MapActivity cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 233 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 216 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 217 Java Problem The method getNavBarForScreen(Activity, BT_item) in the type BT_viewUtilities is not applicable for the arguments (BT_screen_map, BT_item) BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 187 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 216 Java Problem The method findViewById(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 181 Java Problem The method getIntent() is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 153 Java Problem MapActivity cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 138 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 396 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 403 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 398 Java Problem The constructor AlertDialog.Builder(BT_screen_map) is undefined BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 323 Java Problem The import com.google cannot be resolved BT_item.java /com.allitany.BT_activity_root/src/com/allitany line 37 Java Problem The method getBaseContext() is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 346 Java Problem GeoPoint cannot be resolved to a type BT_item.java /com.allitany.BT_activity_root/src/com/allitany line 54 Java Problem MapActivity cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 290 Java Problem MapActivity cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 297 Java Problem MapActivity cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 273 Java Problem MapActivity cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 281 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 665 Java Problem The method getPoint(double, double) from the type BT_screen_map refers to the missing type GeoPoint BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 665 Java Problem GeoPoint cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 667 Java Problem The method getPoint(double, double) from the type BT_screen_map refers to the missing type GeoPoint BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 667 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 598 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 598 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 603 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 603 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 476 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 485 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 405 Java Problem MapView cannot be resolved to a type BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 409 Java Problem The constructor AlertDialog.Builder(BT_screen_map) is undefined BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 463 Java Problem The method getString(int) is undefined for the type BT_screen_map BT_screen_map.java /com.allitany.BT_activity_root/src/com/allitany line 468 Java Problem
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/18/12 04:00 AM (11 years ago)
At least part of that, if not all, can be fixed following the guide on this thread, as long as you're not using the maps plugin?: http://www.buzztouch.com/forum/thread.php?tid=009D5ED602E8D09C55D6225
 
James R
Aspiring developer
Profile
Posts: 31
Reg: Aug 15, 2012
sydney
3,310
like
08/18/12 07:08 PM (11 years ago)
Thank you! you are a legend, trick worked :) Just one more thing, My splash screen works on an emulator but when I use my android as a device, it shows a blank (black) screen for the duration of the splash. any idea?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/18/12 08:41 PM (11 years ago)
Have you exported a new binary (.apk)? Fred
 
James R
Aspiring developer
Profile
Posts: 31
Reg: Aug 15, 2012
sydney
3,310
like
08/20/12 05:38 AM (11 years ago)
yep all sorted, thank you very much! :)
 

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.