Questions Regarding Handling of Received SMS
Posted
by Edwin
on Stack Overflow
See other posts from Stack Overflow
or by Edwin
Published on 2010-01-20T13:03:40Z
Indexed on
2010/04/06
11:03 UTC
Read the original article
Hit count: 187
Hi,
i have managed to successfully write a little test app that can receive and send SMS, but got a couple of questions. (That's 'cos part of the code i copied from elsewhere and i would like to understand better).
In my AndroidManifest as well as the sub-class of BroadcastReceiver, there is reference to the string literal "android.provider.Telephony.SMS_RECEIVED". However, i couldn't find any reference in the API that mentions this. Could someone point me to some reference that lists/explains these?
As part of getting the message from the Intent, i did this:
Object[] pdus = (Object[]) intent.getExtras().get("pdus");
Again this question is related to the use of hardcoded string literal. Where is the string "pdus" listed and described?
Thanks in advance!
© Stack Overflow or respective owner