0
我想從我的應用程序發送電子郵件。 代碼去LIK這樣的:發送電子郵件在Android ...
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(Intent.EXTRA_EMAIL , new String[]{"[email protected]"});
i.putExtra(Intent.EXTRA_SUBJECT, "subject of email");
i.putExtra(Intent.EXTRA_TEXT , "body of email");
startActivity(Intent.createChooser(i, "Send mail..."));
在模擬器
它再次顯示了電子郵件客戶端,我必須輸入收件人地址,當我點擊發送按鈕,它不發送。
它顯示消息(MMS)上下文。
任何幫助,高度讚賞...