廣告

2016年2月25日 星期四

[android] Send Email Intent

http://stackoverflow.com/questions/8701634/send-email-intent
Intent emailIntent = new Intent(Intent. ACTION_SENDTO, Uri.fromParts(
        "mailto", "lewisli.acer@gmail.com", null));
emailIntent.putExtra(Intent.EXTRA_EMAIL , "lewisli.acer@gmail.com");
emailIntent.putExtra(Intent.EXTRA_SUBJECT , "Pet");
emailIntent.putExtra(Intent.EXTRA_TEXT , "this is error page");
startActivity(Intent.createChooser(emailIntent, "Report error"));





but can't get result event
http://stackoverflow.com/questions/3778048/how-can-we-use-startactivityforresult-for-email-intent

You can't, this is not part of the API. It returns once you have pressed send button even if it is not sent

沒有留言:

張貼留言