Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: documentation for content://sms/ "type" values?

I know that the content://sms/ provider is not officially supported in Android. Nonetheless, I'm wondering if there are some commonly used conventions for the values that appear in the "type" column that can be returned from content://sms/ queries.

For example, I know that types "1" and "2" often represent "incoming" and "outgoing", respectively. Are there any other type values that are commonly used? For example, I sometimes see type "20".

Thanks in advance for any pointers to information or discussions about this.

like image 423
NYCHippo Avatar asked Mar 12 '13 02:03

NYCHippo


People also ask

What is SMSManager?

SMSManager class manages operations like sending a text message, data message, and multimedia messages (MMS).

What are the steps involved in sending SMS through Android application discuss?

Before starting your application, Android studio installer will display following window to select an option where you want to run your Android application. Now you can enter a desired mobile number and a text message to be sent on that number. Finally click on Send SMS button to send your SMS.

How do I use SMS Manager on Android?

Manages SMS operations such as sending data, text, and pdu SMS messages. Get this object by calling the static method getDefault() . To create an instance of SmsManager associated with a specific subscription ID, call getSmsManagerForSubscriptionId(int) .


1 Answers

If you're dealing with SMS you'll need to dig around source code given that there is virtually no documentation available.

I think this is what you're looking for:

public static final int MESSAGE_TYPE_ALL    = 0;
public static final int MESSAGE_TYPE_INBOX  = 1;
public static final int MESSAGE_TYPE_SENT   = 2;
public static final int MESSAGE_TYPE_DRAFT  = 3;
public static final int MESSAGE_TYPE_OUTBOX = 4;
public static final int MESSAGE_TYPE_FAILED = 5; // for failed outgoing messages
public static final int MESSAGE_TYPE_QUEUED = 6; // for messages to send later  

From android.provider.Telephony.

like image 57
chetbox Avatar answered Sep 21 '22 17:09

chetbox