When creating a notification, you're supposed to supply a PendingIntent. When the user click on the notification, this PendingIntent is "fired" by the system.
What the PendingIntent resolves to is entirely up to you - it can be any of your activities, not necessarily the main/launcher one. http://developer.android.com/guide/topics/ui/notifiers/notifications.html http://developer.android.com/reference/android/app/PendingIntent.html For Android 3.0 and higher, consider using getActivities() / note the plural / to take the user inside your activity stack. -- Kostya 12 января 2012 г. 18:45 пользователь saex <[email protected]> написал: > 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 > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

