Same as startActivity(Intent, Bundle) with no options specified.
Parameters: intent - The intent to start.
Throws: android.content.ActivityNotFoundException
2. In the MainActivity.java file, add the code below to the onCreate method.
try {
startActivity(myChooser);
} catch ( ActivityNotFoundException e) {
e.printStackTrace();
}
e.printStackTrace();
}
3. Compile and run!