Wednesday, July 14, 2010

[android-developers] Re: Getting phone number from default SMS activity

Hi,

You can pass any integer value. suppose 1
startActivityForResult(intent, 1) ;

And in activity class you can override the onActivityResult() method.

@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);

if ( requestCode == 1 ) {
// do something
}
}

You can fetch the mobile number from the intent.
Hope this may help you.

Regards,
Nishant Shah

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate