I have written code for receiving WAP push messages in mms application.
I am able to receive the WAP push message and stores that into sms table in mmssms.db.
The problem is while showing the wap push message in inbox.I am planning to give a separate icon for WAP push. There is no way to identify wap push message from normal sms. So i planning to add a separate column in sms which will be true only when it is a wap message. Is that possible to alter the sms table?
Am I going in the right direction? Please guide me.
Thanks and regards
you could create another database conatining the IDs of the SMS which are WAP push messages.
That could be a workaround if it is not possible to add a custom column to that table
Related
I am trying to get the list of all the sms/mms sent to one particular phone number. I have been able to do this by getting at least one sms/mms from that number and then based on the thread_id, I get the sent sms/mms to that phone number. However, I have not been able to filter Sent SMS/MMS based on the destination number given I am the sender. Any ideas ? I know that Android doesn't support interaction with SMS/MMS officially, at least, not up to API level 18.
You are right, although android doesn't support sms and mms interaction you can query the content provider responsible for the handling of sms and mms data.
Since you can query the content provider related to sms and mms data you can know the sent sms and mms and the destination of that sms and mms message.
I didn't flaged this answer as duplicate because the idea behind it is slightly different from the following link:
You can use this answer to build what you want to achieve:
How to Read MMS Data in Android?
The only difference is that you dont want to query the content provider for unread messages like i did but for sent messages and include the destination number
I am developing an android SMS application. I can send and receive SMS through my application. I want to show SMS in single listview. I want to know that whether an SMS is
"Sent SMS" or "Received SMS" . How can i check this?? Then update listview SMS as in chat.
Any idea ,tutorial,code snippet will be appreciated.
If you're querying sms contents by query, you could use type column to determine if the sms is sent.
Found in another stackoverflow response, you could look here to see how they do it:
http://gbandroid.googlecode.com/svn-history/r46/trunk/MobileSpy/src/org/ddth/android/monitor/observer/AndroidSmsWatcher.java
I have developed an android application which now I want to extend so as it can send text messages.
Most probably I will be able to find documentation on how to send a text message, but what I am looking for is something I don't know how to do a research on it.
There are two types of text messages you can receive.
One type is from a contact you already know, hence you will see the contact name.
Second type is from a contact you don't know. And, depending on the contact, you will either see a mobile number or a name (eg Google).
My goal is to extend my android application to send a text message in a way that the recipient will see a name as sender (eg Google) and not a mobile number.
I cannot extend my application to use 3G to communicate with a server and send the sms through the server nor I can use an online service which is going to send the sms.
I have to either send the text message from the android application directly or send an sms to an sms service to forward the text message to the recipient.
Is this possible to do?
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.
Basically I'm asking about the Client Id - How do I contact someone without having them contact me first?
I believe your requirement implies sending an SMS or MMS. I can't think of any other protocol or standard that uses phone number as destination for the data.