I have an intent service.
From another class, I create 3 different intents at 3 different times, like this:
At Time X:
Intent aIntent = new Intent(context, abcd.service.ABCD_Processor.class);
aIntent.setAction("Do_A");
context.startService(aIntent);
context.startService(aIntent);
At Time X + 50 milliseconds:
Intent bIntent = new Intent(context, abcd.service.ABCD_Processor.class);
bIntent.setAction("Do_B");
context.startService(bIntent);
context.startService(bIntent);
At Time X + 100 milliseconds:
Intent cIntent = new Intent(context, abcd.service.ABCD_Processor.class);
cIntent.setAction("Do_C");
context.startService(cIntent);
context.startService(cIntent);
----------------
In the abcd.service.ABCD_Processor class, the
protected void onHandleIntent(Intent intent)
function will be called 3 times.
I want to know how the onHandleIntent callback will be invoked?
Will they be invoked one after the other, in the order they were raised.
Is there any chance that 'onHandleIntent' will be called in parallel, to handle more than one intent simultaneously.
Thanks
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment