简体   繁体   中英

how to open gmail and send email to specific id in a android app?

how to open gmail and send email to specific id ina android app?

               Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
               emailIntent.setType("plain/text"); 
               startActivity(emailIntent);

but its not working for me ActivityNotFoundException is shown?

It should be working fine and yes its working fine here in real device. I am sure you are trying to test the same on Emulator, instead try the same in real device.

Yes, it should work. Try on a real device.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM