Hi Ramya, here there are few scenarios,
If the Gaming application/Media application are not your application, you maynot pause the game/media content. If u do so, it is your responsibility to resume those applications. Handling the message from the server can be done from an activity or from service or from manifest. If you have registered for the message(broadcast ) in the manifest of your application, no matter in which state your application is you will receive the broadcast and you can handle that particular request in any java class. If you registered for the message in a service(broadcast),once your service is started by your application,you can handle the message which u got from the server.But there is no guarantee that your service is always alive as the android system may kill if any short of system resources If you registered for the message in an activity(broadcast),you can handle the message only when the activity is in foreground/background. Depending on the different situations you can actually launch any activity/dialog on top of any mediaapp/game.There is no restriction in android that we cannot launch an activity/dialog. we can define a task affinity to the activity like standard,singletop,single task,single instance. you can actually make ur activity single instance in this scenario to launch the message when you are doing something(playing media/game). Thanks, Krishna Chaitanya -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
