Monday 26 March 2012

How to start activity from service in android

Here the below code is used to start activity from the service in android

Intent newIntent = new Intent(getBaseContext( ),nextActivity.class);
newIntent .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplication().startActivity(newIntent);









No comments:

Post a Comment

Android SQLite Database Viewer or Debuging with Stetho

Every Android Developer uses SQLite Database to store data into the Android Application data. But to view the data in SQLite have a lot of...