是否有可能打开emailclient如Gmail,当我点击我的应用程序的一个按钮?
Is it possible to open an emailclient such as gmail when I click a button in my app?
是的。您可以通过意图启动它。
Yes. You can launch it via Intents.
Intent i = new Intent(Intent.ACTION_SEND);
i.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{ emailAddress });
i.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
i.putExtra(android.content.Intent.EXTRA_TEXT, text);
startActivity(Intent.createChooser(i, "Send email"));
上一篇:更好的Android XML布局编辑器比在Eclipse中编辑器、布局、oid、Andr
下一篇:更新Android的ListActivity时列表数据的变化?数据、列表、Android、ListActivity