Any help ?

On Wed, Nov 18, 2009 at 1:43 PM, shahzad ahmad <[email protected]>wrote:

> Hi,
>    i've registered a PhoneStateListener in BOOT_COMPLETED receiver by using
> following call:
>
>    tm.listen(new TestCallStateListener(),
> PhoneStateListener.LISTEN_CALL_STATE);
>
> If the application crashes then system automatically unregisters the
> PhoneStateListener. Is there any mechanism of checking if particular
> PhoneStateLister is registered or not? Actually i'm thinking of starting a
> repeating service by AlarmManager which will check if PhoneStateListener is
> registered or not . And if it's not registered then service will register it
> again. Just  a backup if application crashes. Is this a good approach or
> there is some better mechanism to make sure that PhoneStateListener is
> always registered even if application crashes ?
>
> Regards,
> shaz
>

-- 
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