Hello!
I find this tutorial very interesting. I want to do something similar, but instead of launching an activity, i want to launch a service.
I try to do that this way:
Using java Syntax Highlighting
public class TheService extends IntentReceiver {
@Override
public void onReceiveIntent(Context context, Intent intent) {
Intent i = new Intent();
i.setClass(context, MyPosition.class);
Bundle b = new Bundle();
startService(i,b);
}
}
Parsed in 0.031 seconds, using
GeSHi 1.0.8.4
But the problem is that i can´t do startService(i,b) from an intentReceiver.
Is there anyway to launch a service from an intentReceiver?
thanks!!