When I start my application this code runs ok. After initialization I put my application on backgroung and run a code to receive a notification linked to this activity. When I click on the notification a black screen appears and logCat get a lot of exceptions like this:

Anyone knows how to deal with this problem?
The onCreate method runs, because when I put any log on that it appears on logCat. It seems like I need to initialize something from cocos, could anyone help me if this problem?

Hi Sergey, thanks for your repply, I tried that but didn’t work for me.
I have an alert on onResume with a Toast message and it works, but the scree is still black and logCat with a lot of those exceptions in background.

Do you any idea how to deal with this? Maybe another tag in AndroidManifest?

Does it happens when you just press home and than resume back? If not, than android definitely tries to run yet one activity. So use this tag in AndroidManifest, but google it for more examples if it doesn’t work immediately.

Code from working game where single instance preference works correctly: <activity android:launchMode="singleTask">.