Send Email from Android Application
Jumat, 11 Maret 2011
0
komentar
One of the most common tasks a developer would like to add to his/her application in order to keep in touch with its users is to allow the user send emails from within the application.
Following the Android Developers Reference for the Intent.ACTION_SEND lacks the documentation you would expect in order to properly send an email (not SMS, Twit, file, image etc...).
In order for you to enforce email submission you need to specify the correct type for the created intent. Normally, you would write something like:
but that would let you choose all kinds of applications for performing tasks that are completely unrelated to sending emails.
This is the snippet I use to send email from my applications. notice the type used to force email application.
In order for you to enforce email submission you need to specify the correct type for the created intent. Normally, you would write something like:
emailIntent.setType("text/plain"); |
This is the snippet I use to send email from my applications. notice the type used to force email application.
private void sendEmail() |
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: Send Email from Android Application
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke http://topandroidnexus7.blogspot.com/2011/03/send-email-from-android-application.html. Terima kasih sudah singgah membaca artikel ini.Ditulis oleh Unknown
Rating Blog 5 dari 5
0 komentar:
Posting Komentar