I’m new in android world..
I want in my application to send an email once the user enter some sequence of numbers.. For example, if the user enter “*1234” and other numbers then he presses a button. After that directly the number will be sent using an email address
Don’t mind the haters on StackOverflow…here’s a super simple way to do it…use the
android:onClickattribute for all of your buttons so they’d each look something like this in the layout XML (except with different tag/text):Then define this method and these fields in your
Activity:And then search StackOverflow/google for how to send an email using an
Intent, and you’ll be able to write thesendEmail()method.