1, Drop web browser
Uri Mybloguri = Uri.parse ("http://www.yzmanga.com"); returnit = new Intent (Intent.action_view, Mybloguri);
2, Map
Uri Mapuri = Uri.parse ("geo:38.899533,-77.036476"); returnit = new Intent (Intent.action_view, Mapuri);
3, transfer the phone interface
Uri Teluri = Uri.parse ("tel:100861"); returnit = new Intent (intent.action_dial, Teluri);
4, call directly
Uri Calluri = Uri.parse ("tel:100861"); returnit = new Intent (Intent.action_call, Calluri);
5, uninstall
Uri Uninstalluri = uri.fromparts ("package", "XXX", null); returnit = new Intent (Intent.action_delete, Uninstalluri);
6, installation
Uri Installuri = uri.fromparts ("package", "XXX", null); returnit = new Intent (intent.action_package_added, Installuri);
7, play
Uri Playuri = Uri.parse ("File:///sdcard/download/everything.mp3"); returnit = new Intent (Intent.action_view, Playuri);
8, drop email
Uri Emailuri = Uri.parse ("Mailto:[email protected]"); returnit = new Intent (intent.action_sendto, Emailuri);
9, send e-mail
Returnit = new Intent (intent.action_send); String[] tos = {"[Email protected]"}; String[] CCS = {"[email protected]"};returnit.putextra (Intent.extra_email, TOS); Returnit.putextra (INTENT.EXTRA_CC, CCS), Returnit.putextra (Intent.extra_text, "body"), Returnit.putextra (Intent.extra_subject, "SUBJECT"); Returnit.settype ("message/rfc882"); Intent.createchooser (Returnit, "Choose Email Client");
10, send SMS
Uri Smsuri = Uri.parse ("tel:100861"); returnit = new Intent (Intent.action_view, Smsuri); Returnit.putextra ("Sms_body", " Shenrenkui "); Returnit.settype (" vnd.android-dir/mms-sms ");
11, send mail directly
Uri Smstouri = Uri.parse ("smsto://100861"); returnit = new Intent (intent.action_sendto, Smstouri); Returnit.putextra (" Sms_body "," Shenrenkui ");
12, send MMS
Uri Mmsuri = Uri.parse ("Content://media/external/images/media/23"); returnit = new Intent (intent.action_send); Returnit.putextra ("Sms_body", "Shenrenkui"); Returnit.putextra (Intent.extra_stream, Mmsuri); ReturnIt.setType (" Image/png ");
Android acquisition system built-in intent