Saturday, July 25, 2015

android: Android Null Pointer Exception with Intent/IntentService

Don't Use this
Intent mServiceIntent = new Intent(this, Scan.class);
Always Use this 
 Intent intent = new Intent(this, SplashScreen.class);                          
 intent .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent );

No comments:

Post a Comment