Pages

Wednesday, December 21, 2016

android.app.application cannot be cast to activity





android.app.application cannot be cast to activity




Their is class cast exception you are casting fragment to activity. com.ebspma.activity.reservassalasfragment cannot be cast to android.app.activity. ... cannot be cast to android.app.activity i have a list in a fragment and i want a new activity to start when i press something in that list.. Set the base context for this contextwrapper. if this context is an activity that is stopped, this method cannot be called from a broadcastreceiver.

















... android.app.application cannot be cast to com.xxx without application class i got this error android.app.application cannot be cast to android.app.activity.. Android.app.application cannot be cast to android.app you get this exception because you can't cast the application to activity since application is not a sub. ... android.view.contextthemewrapper cannot be cast to android.app.activity. private static activity scanforactivity(context cont) { if (cont == null).




Related Posts by Categories

0 comments:

Post a Comment