I've take a look to the code, but it just read incoming sms.
Maybe I didn't clear enough to explain in my first post, my bad :)

Actually I want to know how to read outgoing sms from the user, not
the incoming sms.

But I really appreciate your reply mate, thank you :)

On Apr 12, 10:56 pm, XiaoXiong Weng <xiaoxiong.w...@gmail.com> wrote:
> Borrowed from the below 
> person.http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-s...
>
> | ||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 &lt;
> 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
> > <moch.bas...@gmail.com <mailto:moch.bas...@gmail.com>> 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 <xiaoxiong.w...@gmail.com
> >     <mailto:xiaoxiong.w...@gmail.com>> 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
> >     android-developers@googlegroups.com
> >     <mailto:android-developers@googlegroups.com>
> >     To unsubscribe from this group, send email to
> >     android-developers+unsubscr...@googlegroups.com
> >     <mailto:android-developers%2bunsubscr...@googlegroups.com>
> >     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 android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to