Sending user comments on Email in android studio - android

I am trying to make a "Contact us" page where I am taking user comments/ Suggestions along with their name and email and want to send them to my gmail account. I don't want intents. I have read the documentation on Java API but they are sending a hard coded message "Hello World"
I don't want that. And I have no idea how to achieve the task I am trying to do. Any guidance and help would be appreciated.
Update: I have tried the tutorial http://www.edumobile.org/android/send-email-on-button-click-without-email-chooser/ which sends the automated email on button click. I dont want the hard coded message. I have made the layout and want to send the message entered by the user along with the email, name and phone number to my gmail account. I am new to android so I don't know how this will be achieved. I will appreciate any kind of suggestions and help
Contact us layout

Please refer this link http://www.edumobile.org/android/send-email-on-button-click-without-email-chooser/ again.
They are not sending only hard coded message but as an example they have taken TextView with 'Hello World' , you can use any controls that you want like EditText and when user will enter those details then get the values from EditText and do the concatenation of those values and make one string,store in a variable and use that string to send in a email as body.
You just have to change the value in below line in SendMail AsyncTask class' doInBackground method
m.setBody($body_variable);
I hope this will help you , Feel free to comment.

Related

How to send verification code and retrieve it in android

I am developing an application using web services(Volly). I just want to create
Forget password module
I am taking email from user. I just want to send verification code to that particular email address so that user can put that code and rest his/her password.
The reason people are down voting your post is because Stack Overflow isn't meant to be used as a place were people just write code for you. You can easily look this up. If you have a specific question, you can ask it here.

Post from android to web then get result

I need your help
please i'm trying to build and apps that i can from it to post the number of a car in the web, then get the result to know if i have a speed ticket or no.
But i have a problem in posting the number from the apps into the text box that are included in this website.
please can you tell me how can i do it
this is the web
http://apps.isf.gov.lb/speedticket/speedticket_ar.php/
Thanks for your time
I think your goal should not be to post it in the text box, but rather post to the form's target URL the value for the variable named in the text box using an HTTP_POST call.

How to send simple string to a webpage from Android

I have a small problem. I want to somehowe invoke a button in a webpage from an android application and send some information to this page. This is the part of the webpage I want to interact with.
In this form you write your name, e-mail and a comment. By clicking the button "Изпрати коментар" (which means "Send your comment") you can post a comment in the webpage. So I want to make the same functionallity, but from an android application (to write comments into the webpage).
Does someone of you have any idea how can this be accomplish?
Thank you in advance!

How to create a gui which will show the received sms?

I have an application on first user's phone which sends a sms to second user.I am abled to send the sms to second user but I want to have a button which can show me the received sms.
Right now I'm having a code from a tutorial http://mobiforge.com/developing/story/sms-messaging-android but it shows the sms immediately after it is received on second user.I want that it is shown only when some particular button like "View sms" is clicked.How can I do it? Any ideas please.
Here is the link of code:
http://pastebin.com/Hu317WNd
You will have to store the message in memory/db/file somewhere and then when the user hits the button you open the file/sql whatever and display the 1st message on the stack.
Listen for button click, get latest message, display.
Can you give some tutorial links for this or some piece of code it'll
be easy then. And one more thing,when that message is retrieved from
file can we have a reply option so that user can reply back to it? If
yes, please explain how? Or tell me how can I change the above
requirement to this one?
I can post some links and you can put them together
Button Click listener Right at the top
Reading and writing to a file This probably isn't the best way, but you could have a comma delimited file that stores the messages that are waiting to get replied to.
The best way would be a database, but since it seems your a beginner start with a file or maybe even shared preferences.
When you read the message in from the file or the db you should have the telephone # data and you can have a reply button present when you display the message.
Going with the tutorial you send, just store the message when it is received in the broadcast listener.

Profile creation and form submission in Android

I am a newbie in android and trying hard to get on to it. I have searched a lot to find a better and reliable way to do what I want in my application. But didnt get lucky to find specific information. Can anybody tell me how to create a simple login page including form submission text input fields like name , address, age , sex and password and retype password etc. I want to have a "Create Profile" link on the Emulator Home Screen. Once the user clicked on it will direct the user to the profile creation page. I want to create login IDs or profiles many as I want, submit the form to my emulator, store them in a database and retrieve the information in a new page named "Profile Home page" by providing the password. So in a way when the user click on the Submit Form button then immediately a window will appear to type and enter the password. If the password is right then the "Profile Home page" will appear. Ofcourse the user should be able to edit their personal information. Is there any kind buddy who can help me out this? Any suggestion, ideas or clues are highly appreciated.
#Pervanee All you need to do is create simple activities and switch them based on the events. As andro said whatever you are asking for is a full application so break it down into screens and then find out how you can create each one. Plenty of code for what you ask will be there if you do some search. :)

Categories

Resources