http://www.oschina.net/code/snippet_166763_6502
03 | Uri uri = Uri.parse(“http: |
04 | Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
06 | Uri uri = Uri.parse(“geo: 52.76 ,- 79.0342 ″); |
07 | Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
09 | Uri uri = Uri.parse(“tel: 10086 ″); |
10 | Intent intent = new Intent(Intent.ACTION_DIAL, uri); |
12 | Uri uri = Uri.parse(“tel: 10086 ″); |
13 | Intent intent = new Intent(Intent.ACTION_CALL, uri); |
15 | Uri uri = Uri.fromParts(“ package ”, “xxx”, null ); |
16 | Intent intent = new Intent(Intent.ACTION_DELETE, uri); |
18 | Uri uri = Uri.fromParts(“ package ”, “xxx”, null ); |
19 | Intent intent = new Intent(Intent.ACTION_PACKAGE_ADDED, uri); |
21 | Uri uri = Uri.parse(“file: |
22 | Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
23 | intent.setType(“audio/mp3″); |
25 | Uri uri= Uri.parse(“mailto:admin @3gstdy .com”); |
26 | Intent intent = new Intent(Intent.ACTION_SENDTO, uri); |
28 | Intent intent = new Intent(Intent.ACTION_SEND); |
29 | String[] tos = { “admin @3gstdy .com” }; |
30 | String[] ccs = { “webmaster @3gstdy .com” }; |
31 | intent.putExtra(Intent.EXTRA_EMAIL, tos); |
32 | intent.putExtra(Intent.EXTRA_CC, ccs); |
33 | intent.putExtra(Intent.EXTRA_TEXT, “I come from http: |
34 | intent.putExtra(Intent.EXTRA_SUBJECT, “http: |
35 | Intent.createChooser(intent, “Choose Email Client”); |
37 | Intent intent = new Intent(Intent.ACTION_SEND); |
38 | intent.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”); |
39 | intent.putExtra(Intent.EXTRA_STREAM, “file: |
40 | intent.setType(“audio/mp3″); |
41 | startActivity(Intent.createChooser(intent, “Choose Email Client”)); |
43 | Uri uri= Uri.parse(“tel: 10086 ″); |
44 | Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
45 | intent.putExtra(“sms_body”, “I come from http: |
46 | intent.setType(“vnd.Android-dir/mms-sms”); |
48 | Uri uri= Uri.parse(“smsto: |
49 | Intent intent = new Intent(Intent.ACTION_SENDTO, uri); |
50 | intent.putExtra(“sms_body”, “3g android http: |
52 | Uri uri= Uri.parse(“content: |
53 | Intent intent = new Intent(Intent.ACTION_SEND); |
54 | intent.putExtra(“sms_body”, “3g android http: |
55 | intent.putExtra(Intent.EXTRA_STREAM, uri); |
56 | intent.setType(“image/png”); |
59 | Uri uri = Uri.parse(“market: |
60 | Intent it = new Intent(Intent.ACTION_VIEW, uri); |
64 | Uri uri = Uri.parse(“market: |
65 | Intent it = new Intent(Intent.ACTION_VIEW, uri); |
71 | Uri uri = Uri.parse(“http: |
72 | Intent it = new Intent(Intent.ACTION_VIEW, uri); |