Android permission URI. parse
I just sorted out a copy of Android permission URI. parse.
1. Tune the web browser
Uri mybloguri = URI. parse ("http://xxxxx.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 call 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. Install
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. Call to send an email
Uri emailuri = URI. parse ("mailto: xxxx@gmail.com ");
Returnit = new intent (intent. action_sendto, emailuri );
9. send an email
Returnit = new intent (intent. action_send );
String [] TOS = {"xxxx@gmail.com "};
String [] CCS = {"xxxx@gmail.com "};
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 text messages
Uri smsuri = URI. parse ("Tel: 100861 ");
Returnit = new intent (intent. action_view, smsuri );
Returnit. putextra ("sms_body", "YYYY ");
Returnit. settype ("Vnd. Android-DIR/MMS-SMS ");
11. send an email directly.
Uri smstouri = URI. parse ("smsto: // 100861 ");
Returnit = new intent (intent. action_sendto, smstouri );
Returnit. putextra ("sms_body", "YYYY ");
12. Send MMS messages
Uri mmsuri = URI. parse ("content: // media/external/images/Media/23 ");
Returnit = new intent (intent. action_send );
Returnit. putextra ("sms_body", "YYYY ");
Returnit. putextra (intent. extra_stream, mmsuri );
Returnit. settype ("image/PNG ");