I'd like to know what is the format for an android intent. IE, what should I pass to the method :
getBaseContext().startService(Intent);
If I want to pass this:
android.provider.CallLog.Calls.CONTENT_URI
can i? What would be the format.
Can someone give a good explanation of how to use Intents, and how to use it on Service implementation, like, startService()
, or onStartCommand (Intent intent, int flags, int startId)
.
Thanks!
Just to call a new Activity this is the method.
startActivity(new Intent(this, MYACtivityClass.class));
If you want to pass values into the Activity, you need to create a Bundle