[Android] Context removed error when activity destroyed
Context is removed when activity called onDestroy(). So when after called context, It goes to error. So please reference next solution code. # Example Resolution Code if ( context instanceof Activity ) { Activity activity = (Activity)context; if ( activity.isFinishing() ) { return; } } Toast.makeText(context, "I'll do things here that depend on my context and views being valid", Toast.LENGTH_SHO..
Computer/Android
2019. 6. 16. 22:59