I am using service and onStartCommand returning 
START_STICKY<http://developer.android.com/reference/android/app/Service.html#START_STICKY>.
 
I have also register some broadcast receiver in onStartCommand. It is 
working fine in all mobiles. On Samsung mobile it stop working around after 
30 minute. Android calling only onCreate in 30-40 minute duration but not 
calling onStartCommand. After stop working when i am trying to stop service 
then application giving me exception. as no broadcast receiver found. 
Mobile setting screen showing that service is running. Please suggest how i 
will resolve it.



On Thursday, March 3, 2011 12:23:00 AM UTC+5:30, MagouyaWare wrote:
>
> I have an app that uses the notification bar in a similar way but I 
> provided a setting in preferences that they can use to turn off the 
> notification.
>
> On Wed, Mar 2, 2011 at 11:48 AM, rich friedel <[email protected]>wrote:
>
>> To be fair, I obviously do not know for a fact that HTC devices 
>> are intentionally ignoring the startForeground() method. Here are the bug 
>> reports though so y'all decide... 
>> http://code.google.com/p/android/issues/detail?id=9663 && 
>> http://code.google.com/p/android/issues/detail?id=9682
>>
>> As for the status bar icon persistently showing while the app is running, 
>> I do this because my app runs silently in the background and auto-responds 
>> to text messages therefore I use the icon as a quick visual cue to let the 
>> user know it is in fact running. Otherwise I fear they would forget it is 
>> running and blame my app for auto-responding when they "think" it shouldn't 
>> be. Also, it only shows a short message when the user explicitly starts the 
>> service and then shows another short message upon sending the 
>> auto-response. In the notification drop down area I have an ongoing 
>> notification. Apart from error messages that is pretty much it.
>>
>> If this is incorrect usage of the status bar icon and notification that 
>> is fine and I'll conform to whatever y'all suggest, however I really cannot 
>> think of a better way of doing it.
>>  
>> -- 
>> 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

Reply via email to