@Override
publicvoid onReceive(Context context, Intent intent){ /* Create intent which will finally start the Main-Activity. */
Intent myStarterIntent = new Intent(context, MyStarterIntent .class);
/* Set the Launch-Flag to the Intent. */
myStarterIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
/* Send the Intent to the OS. */
context.startActivity(myStarterIntent);
} }
Joined: 16 Feb 2008 Posts: 544 Location: Flanders, Belgium
Posted: Thu Oct 09, 2008 10:20 am Post subject:
Is it possible to make BOOT_COMPLETED automatically start a service? According the manifest docs you can specify an intent-filter for <service> but I can't get it to work.
All times are GMT + 1 Hour Goto page Previous1, 2, 3
Page 3 of 3
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum