Android 应用协调器 Intent
2010-03-24 15:35:00 来源:WEB开发网核心提示:Intent.createChooser(returnIt, "Choose Email Client");10,发短信Uri smsUri = Uri.parse("tel:100861");returnIt = new Intent(Intent.ACTION_VIEW, s
Intent.createChooser(returnIt, "Choose Email Client");
10,发短信
Uri smsUri = Uri.parse("tel:100861");
returnIt = new Intent(Intent.ACTION_VIEW, smsUri);
returnIt.putExtra("sms_body", "sms body");
returnIt.setType("vnd.android-dir/mms-sms");
11,直接发邮件
Uri smsToUri = Uri.parse("smsto://100861");
returnIt = new Intent(Intent.ACTION_SENDTO, smsToUri);
returnIt.putExtra("sms_body", "sms_body");
12,发彩信
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");
今天就说这么多,有更大需求的可以看源代码。
更多精彩
赞助商链接