i want that when the phone receives a push notification from AC2M, a notification must be shown in the notification bar, and if the user press on the notification, my app must be started and show a specific activity describing that notification, and not the normal fist activity of my app.
It is possible to achieve this? can someone explain me how?
My app must be started to listen the receiver? or can my app be not started?
thanks
From C2DM , yes this is possible.
In C2DMReceiver.java class use this code :
To make your app started to listen, make sure you have declared following in AndroidManifest.xml file of your project(along with other necessary required permissions):