android.util.AndroidRuntimeException

Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? at android.app.ContextImpl.startActivity(ContextImpl.java:682) at android.app.ContextImpl.startActivity(ContextImpl.java:669) at android.content.ContextWrapper.startActivity(ContextWrapper.java:337) at org.microg.gms.gcm.PushRegisterService.register(PushRegisterService.java:143) at org.microg.gms.gcm.PushRegisterService.onHandleIntent(PushRegisterService.java:111) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.os.HandlerThread.run(HandlerThread.java:61)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Hiren AmaliyarHiren Amaliyar
57 times, last one
iridiciridic
16 times, last one
jkjk
4 times, last one
lribeirolribeiro
5 times, last one
MyInnosMyInnos
4 times, last one
2 more bugmates