我用這個在android中以編程方式發送電子郵件,但在Android 4.4.4中工作不好。有沒有另一種方法來做到這一點?這是我的代碼,謝謝。以編程方式發送郵件Android
Intent i = new Intent(Intent.ACTION_SEND);
//i.setType("text/plain"); //use this line for testing in the emulator
i.setType("message/rfc822") ; // use from live device
i.putExtra(Intent.EXTRA_SUBJECT,"-my app-");
i.putExtra(Intent.EXTRA_TEXT,"Hello");
startActivity(Intent.createChooser(i, "Select your mail app"));
請詳細解釋**,完全而準確地說**,「不好」的意思。 – CommonsWare 2014-12-13 15:07:13
對話框在屏幕上顯示很大 – 2014-12-13 15:11:15