mercredi 28 janvier 2015

When do we fill in parameters for Intents?


Vote count:

0




Self-learning Android at the moment.


My question is when do I need to use the parameters for the instantiating an Intent?


Sometimes I write this:



Intent baseIntent = new Intent(Intent.ACTION_VIEW, googleURI);


Other times:



Intent explicitIntent = new Intent(this, ExplicitlyLoadedActivity.class);


And there are even times such as:



Intent intent = new Intent();


When do I fill in the parameters for the constructor?


And what kind of parameters?



asked 1 min ago







When do we fill in parameters for Intents?

Aucun commentaire:

Enregistrer un commentaire