transition - Android: overridePendingTransition giving force close -


in app have imageview performing sliding animation, below code:

public class addresspopupactivity extends activity {     private final string tag = addresspopupactivity.class.getsimplename();      protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         requestwindowfeature(window.feature_no_title);         setcontentview(r.layout.addressbookmenu);                listview menusearchlistview = (listview) findviewbyid(r.id.popuplist);         popupmenuutils popupmenuutils = new popupmenuutils();         activity parent = (activity) activitiesbringe.getobject();         addresspopupadapter addresspopupadapter = new addresspopupadapter(this,parent,                 r.layout.popupmenurow, popupmenuutils.getpopuppabutil(this),r.layout.popupmenurow);         log.d(tag, "onactivitycreated step 05");         menusearchlistview.setadapter(addresspopupadapter);         imageview custommenu = (imageview) findviewbyid(r.id.custom_menu);         textview headerfont = (textview) findviewbyid(r.id.custom_head);         headerfont.settext(r.string.addressbook);          custommenu.setontouchlistener(new ontouchlistener() {             @override             public boolean ontouch(view v, motionevent event) {                  finish();                                overridependingtransition(r.anim.slide_in_top, r.anim.slide_in_bottom);                 return false;             }         }); 

from above code when click on custommenu(imageview) slides next screen, when repeatedly hit imageview giving force-close. appreciated.

below log trace:

04-05 13:14:38.260: e/androidruntime(10042): fatal exception: main 04-05 13:14:38.260: e/androidruntime(10042): java.lang.runtimeexception: unable start activity componentinfo{org.appright.myneighborhood/org.appright.myneighborhood.activity.addresspopupactivity}: java.lang.nullpointerexception 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2100) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.activitythread.handlelaunchactivity(activitythread.java:2125) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.activitythread.access$600(activitythread.java:140) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.activitythread$h.handlemessage(activitythread.java:1227) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.os.handler.dispatchmessage(handler.java:99) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.os.looper.loop(looper.java:137) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.activitythread.main(activitythread.java:4898) 04-05 13:14:38.260: e/androidruntime(10042):    @ java.lang.reflect.method.invokenative(native method) 04-05 13:14:38.260: e/androidruntime(10042):    @ java.lang.reflect.method.invoke(method.java:511) 04-05 13:14:38.260: e/androidruntime(10042):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1008) 04-05 13:14:38.260: e/androidruntime(10042):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:775) 04-05 13:14:38.260: e/androidruntime(10042):    @ dalvik.system.nativestart.main(native method) 04-05 13:14:38.260: e/androidruntime(10042): caused by: java.lang.nullpointerexception 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.dialog.<init>(dialog.java:153) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.dialog.<init>(dialog.java:131) 04-05 13:14:38.260: e/androidruntime(10042):    @ org.appright.myneighborhood.adaptor.addresspopupadapter.<init>(addresspopupadapter.java:61) 04-05 13:14:38.260: e/androidruntime(10042):    @ org.appright.myneighborhood.activity.addresspopupactivity.oncreate(addresspopupactivity.java:32) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.activity.performcreate(activity.java:5206) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1094) 04-05 13:14:38.260: e/androidruntime(10042):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2064) 04-05 13:14:38.260: e/androidruntime(10042):    ... 11 more 


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -