开发者

Android: Get and Open Email and remove Bluetooth

i want to choice a app to send email:only email app to send my email,i have read How to open Email program via Intents (but only an Email program) i used intent.setType("message/rfc822") ,it very well,but Bluetooth and email give me to choice,i want to remove Bluetooth,and want to Leave only email.can you tell me how to send email not to show Bluetooth to give mo choice;

edit: if i used Intent intent = new Intent(Intent.ACTION_SENDTO); the bluetooth is remo开发者_Python百科ve but add Text messages t0 give me choice.i also used

Intent intent = new Intent(Intent.ACTION_VIEW);
Uri data = Uri.parse("mailto:?subject=" + subject + "&body=" + body);
intent.setData(data);
startActivity(intent);

the bluetooth also remove but also add add Text messages t0 give me choice.is there i way to only email app to send email?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜