Android won't necessarily kill your service when there is an incoming
call. You can read about incoming call detection here:

    http://d.android.com/reference/android/telephony/PhoneStateListener.html

Some nice guy wrote it up here:

    http://mylifewithandroid.blogspot.com/2008/01/phonecalls.html



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On May 5, 6:02 am, iloveblue <[email protected]> wrote:
> Hello:
>
> I have a question about service, take a music player for example.
>
> While I am playing the music in background as a service. And then a
> phone call happens, what should the service do? Will the OS (android)
> pause the service, or will the developer who develop the service write
> code to detect things like this and define the operations?
>
> I did not find any material about this question, so I raise a new post
> here to find if anyone who is clear about this? Or can introduce me
> some material to read. Thanks very much!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to