eclipse - Menu button force close android? -


i have , application worked fine when opened menu button , went settings pushed button when added google maps api application button force closes application. has there been 1 else same issue? if how did fix it? or know how fix problem?

edit:

my log cat errors on button force close

04-29 16:02:13.155: error/androidruntime(16828): fatal exception: main 04-29 16:02:13.155: error/androidruntime(16828): java.lang.runtimeexception: unable            resume activity {www.freshapp.com.thumper.html/www.freshapp.com.thumper.html.thumper}: java.lang.nullpointerexception 04-29 16:02:13.155: error/androidruntime(16828):     @ android.app.activitythread.performresumeactivity(activitythread.java:3128) 04-29 16:02:13.155: error/androidruntime(16828):     @ android.app.activitythread.handleresumeactivity(activitythread.java:3143) 04-29 16:02:13.155: error/androidruntime(16828):     @ android.app.activitythread$h.handlemessage(activitythread.java:2059) 04-29 16:02:13.155: error/androidruntime(16828):     @ android.os.handler.dispatchmessage(handler.java:99) 04-29 16:02:13.155: error/androidruntime(16828):     @ android.os.looper.loop(looper.java:123) 04-29 16:02:13.155: error/androidruntime(16828):     @ android.app.activitythread.main(activitythread.java:4627) 04-29 16:02:13.155: error/androidruntime(16828):     @ java.lang.reflect.method.invokenative(native method) 04-29 16:02:13.155: error/androidruntime(16828):     @ java.lang.reflect.method.invoke(method.java:521) 04-29 16:02:13.155: error/androidruntime(16828):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:858) 04-29 16:02:13.155: error/androidruntime(16828):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:616) 04-29 16:02:13.155: error/androidruntime(16828):     @ dalvik.system.nativestart.main(native method) 04-29 16:02:13.155: error/androidruntime(16828): caused by: java.lang.nullpointerexception 04-29 16:02:13.155: error/androidruntime(16828):     @ com.google.android.maps.mapactivity.onresume(mapactivity.java:431) 04-29 16:02:13.155: error/androidruntime(16828):     @ www.freshapp.com.thumper.html.thumper.onresume(thumper.java:181) 04-29 16:02:13.155: error/androidruntime(16828):     @ android.app.instrumentation.callactivityonresume(instrumentation.java:1149) 04-29 16:02:13.155: error/androidruntime(16828):     @ android.app.activity.performresume(activity.java:3823) 04-29 16:02:13.155: error/androidruntime(16828):     @ android.app.activitythread.performresumeactivity(activitythread.java:3118) 

edit 2

i took out map view , sliding drawer map view in , map , application gets no fc.

-thanks

i figured out, needed add button function inside of setting. works great

public boolean onkeydown(int keycode, keyevent event) {     log.d(null,"in on key down");     if (keycode == keyevent.keycode_back) {   intent intent=new intent(settings.this,thumper.class);   startactivity(intent);         return true;     }      return false; } 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -