Sorry,
Yes the onReceive is certainly being called, which I discovered after
adding the Toast, but the call:
wpService.sendWakefulWork( context )
Doesn't appear to be working after a reboot...
On 11/06/2011 9:38 PM, Mark Murphy wrote:
On Sat, Jun 11, 2011 at 4:33 PM, Simon Platten
<[email protected]> wrote:
Thank you, I've added a Toast to my wprotatorReciever onReceive routine and
it is getting there, here is the code for that onReceive routine:
public void onReceive(Context context, Intent intent) {
Toast.makeText(context, "wprotatorReciever",
Toast.LENGTH_SHORT).show();
wpService.sendWakefulWork( context );
}
Although it is getting into the onReceive every 5 seconds, it is not
performing the service...this is the same code that is scheduled when
running normally and it works then but not after a reboot.
OK, I'm confused. You said that it's not running, but it is displaying
the Toast, which means it is running. Which is 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