我的代码是这样的:
Intent i = new Intent(Intent.ACTION_SENDTO);
i.putExtra(Intent.EXTRA_EMAIL,"example @example. Com");
i.putExtra(Intent.EXTRA_SUBJECT,"Grannylaunch Support Needed:" + System.currentTimeMillis());
startActivity(i);
Toast.makeText(getApplicationContext(),"Emailing Support....", Toast.LENGTH_LONG);
Run Code Online (Sandbox Code Playgroud)
我的问题是意图不是开始活动.我做错了什么,我该如何解决?
我尝试过设置intent = Intent.ActionSend,但是没有用.
编辑 -
Intent i = new Intent(Intent.ACTION_SENDTO);
i.putExtra(Intent.EXTRA_EMAIL,"example@example.com");
i.putExtra(Intent.EXTRA_SUBJECT,"Grannylaunch Support Needed:" + System.currentTimeMillis());
i.putExtra(Intent.EXTRA_TEXT,"");
startActivity(i);
Toast.makeText(getApplicationContext(),"Emailing Support....", Toast.LENGTH_LONG);
Run Code Online (Sandbox Code Playgroud)
这也不起作用.