我在应用程序开发中遇到了一个奇怪的问题。
在我的应用程序中的某个时刻,它会调用 Intent (Intent.ACTION_SEND) 来启动 Gmail,
将出现“使用...完成操作”对话框。
即使我选中底部的默认框并选择 Gmail,下次我的应用程序调用时
意图,使用对话框完成操作不断出现。
即使我已经选择了要启动的默认应用程序,我也无法让它消失。
有什么想法吗?
意图示例
private void do_gmail_failover() { // If GMailSender fails, revert back to old method
Intent email_pic = new Intent(Intent.ACTION_SEND); // Commence choose photo action // Used to be ACTION_SEND
email_pic.putExtra(Intent.EXTRA_EMAIL, Recipients); // Inserts Digital Signature address in recipient
email_pic.putExtra(Intent.EXTRA_SUBJECT, DIGIJOB); // Inserts Track Number automatically in subject
email_pic.putExtra(Intent.EXTRA_STREAM, uriTarget); // Attaches image to Gmail
email_pic.setType("image/jpeg"); // Converts image to jpeg
startActivityForResult(email_pic, RETURN_ACTIVITY);
overridePendingTransition(R.anim.fadein, R.anim.fadeout);
LOGCAT.DEBUG("do_gmail_failover", "Inside do_gmail_failover function");
}
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)