![]() |
![]() |
ApiDemos/App/Activity/Intents
Intents.java
contains the
Activity.intents.xmlstrings.xml
The
onClick
method of the
OnClickListener
displays an activity chooser
if more than one Activity matches the intent.
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("audio/*");
startActivity(Intent.createChooser(intent, "Select music"));