a 10 seconds search on google gave me this answer : http://stackoverflow.com/questions/3606596/android-start-activity-from-service
please search before asking ... On 16 avr, 02:43, dashman <[email protected]> wrote: > i create PendingIntent and notification from a service. > > PendingIntent contentIntent = PendingIntent.getActivity( > context, 0, > notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT ); > > it creates a notification, user taps on the notification and then > the activity gets called... > > works fine. > > what i'd like to do is to call the activity immediately from the > background service and then have the notification act as more > of a message to user that the activity was called. -- 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

