I am trying to start an activity at a certain time with the help of a service and broadcastreceiver. The problem is, once the time hits, my app crashes.
Here\'s my Alarm
To start an Activity outside of an Activity Context you need to use the flag FLAG_ACTIVITY_NEW_TASK. Add this to your Intent
Activity
Context
FLAG_ACTIVITY_NEW_TASK
Intent
Intent in = new Intent(this, GoTime.class); in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if this doesn't solve your problem then please post the logcat.