Sorry for any mistake!
I am developing an App in android in which I am access unread message from the mobile with the help of Content Resolver & Sending those message on Email automatically. I am using TimerTask for this which repeate my Application with in a specific Time which I have set. Now it again Pickup those message which I have send On Email. Now problem is that How to recognise which message i have send in android?
Any help will be appreciated.
Thanks & Regards,
Deepanker Chaudhary
There are a few solutions to this:
Store the timestamp/id of the last SMS successfully forwarded through the email in a SharedPreferences value.
Maintain a database internal to your application and store all the messages forwarded to email along with their sending status in this database, so that you can resend the message in case of error in sending the email. You may have to perform housekeeping of this database to occasionally clear out past entries.
Related
I'm working on an security application in which my application will send a mail to the server automatically without the phone user disturbance. What I need is
Colletct user phone number and imei number
Send a email with the information, but user don't know about the process.
When a user insert a new sim again a new email will be send with the above mentioned process
What I done till is :
Colletct user phone number and imei number using telephony manager
Save the information locally
But I need an instruction or tutorial for doing rest of my work. Can anyone help?
You can do this in Version below M but above M you need to ask permission from the user so i suggest you to make a database and send data to server using background async task.
Here is tutorial to send email without intent http://www.oodlestechnologies.com/blogs/Send-Mail-in-Android-without-Using-Intent
All the message which is sent by the users should store in database??? if so, how can i store huge amount of message in the db?? insert all message as string to database??
Make a separate record for each message. It gives you better searching and further easy improvement in operation in future.
Thanks
Lets say that I need the last message that sent to whatsapp app and I need to be able to read this message from my application. (TTS).
I know how to send message to Whatsapp from my app but not writing message from my app and send to Whatsapp with specific contact name.
Edit:
How can I read the last message that sent from contact in Whatsapp? I want to take the string of the last message and use it in my app.
Thank you guys.
I have designed an application that will send an email to all addresses in an sqlite database to check their availability.
Is there any way that the people receiving these emails can reply with a yes/no and the app would listen and take in what the reply was?
If this is not possible for email, can it be done with a yes/no text message?
Thanks in advance.
The replies could certainly be sent as a response to your message and end up in the mailbox corresponding to the sender of your message. Your app could monitor that mailbox for new messages and process them.
You can't use JS in an email, and forms have spotty support (more info). You can instead use href links with unique urls to respond to a single question.
See here for an example.
Well!! My question is little weird .. I have created an chat channel which send text using one XMPP server.. Now I want to show the incoming chat as a sms in inbox.. Is there a way I can send sms/show sms in message inbox of android phone?
what I want to achieve is that if a person A sends an SMS to person B (then I will intercept the out going SMS and send it via chat)
Waiting for the comments!
Thanks
You can use Twilio to manage the SMS functionality.