Borrowed from the below person.
http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/
| ||public| |void| |onReceiveIntent(Context context, Intent intent) {|
|19| | ||if| |(intent.getAction().equals(ACTION)) {|
|20| | ||StringBuilder buf = ||new| |StringBuilder();|
|21| | ||Bundle bundle = intent.getExtras();|
|22| | ||if| |(bundle != ||null||) {|
|23| | ||SmsMessage[] messages =
Telephony.Sms.Intents.getMessagesFromIntent(intent);|
|24| | ||for| |(||int| |i = ||0||; i <
messages.length; i++) {|
|25| | ||SmsMessage message = messages[i];|
So it's
| |*|SmsMessage[] messages =
Telephony.Sms.Intents.getMessagesFromIntent(intent);|*
On 4/12/2011 11:04 AM, saurabh patil wrote:
> which email client u are using..
>
> On Tue, Apr 12, 2011 at 12:56 PM, Mochamad Basofi
> <[email protected] <mailto:[email protected]>> wrote:
>
> Could you give me more details?
> I don't have any clue of which intent I should use.
>
> btw thank you for the reply
>
> On Apr 12, 10:15 am, XiaoXiong Weng <[email protected]
> <mailto:[email protected]>> wrote:
> > Um. I believe the intent for sms allows you to see the status,
> so you
> > would get a status code for every message sent.
> > On 4/11/2011 11:09 PM, Mochamad Basofi wrote:
> >
> > > Hello groups,
> >
> > > I wonder if there is a way to read sms that being send at the
> time?
> > > I've googled for a few days yet there is still no answer.
> > > Any answers will be very helpful.
> >
> > > Thank you very much.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> [email protected]
> <mailto:[email protected]>
> To unsubscribe from this group, send email to
> [email protected]
> <mailto:android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en