I will try to find the code for you
Please see this :
Or Try This Code :
Intent intent = new Intent(Intent.ACTION_SENDTO); // it's not ACTION_SEND intent.putExtra(Intent.EXTRA_SUBJECT, "Subject of email"); intent.putExtra(Intent.EXTRA_TEXT, "Body of email"); intent.setData(Uri.parse("mailto:email@example.com")); // or just "mailto:" for blank intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // this will make such that when user returns to your app, your app is displayed, instead of the email app. startActivity(intent);
You can access that method only using a valid context.
Get a context
Then use this method.
But don't forget to add
; at end
you already can do this easily using the activity starter component...
How to send an eMail
which means, it does not really help very much to provide exactly the same functionality as extension...
yeah, i know that
i want to learn it therefore for example i have used mailto links. i am not gonna to publish that extension
Hmm, you are weird.
i want to learn only
In my opinion, this error is not due to code, I think it's because your block form is wrong
Hmm. is all libraries of android are installed in extension templete?
still i can't understood?
lol, i think i am using old version of extension template. there are some libs are missing in my template.
Then is it successful
not tried yet
next year came did it worked if yes soon mark solution
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.