I will try to find the code for you
Please see this :
https://codinginflow.com/tutorials/android/email-intent
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:default@recipient.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.
Means ?
Get a context
Then use this method.
context.blahblahblah()
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...
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
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
okay
next year came did it worked if yes soon mark solution
Done
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.