[android-beginners] Re: how to read sms from inbox

2009-09-10 Thread eaindra nilar
Hi,
You can use this code for reading sms inbox
I already tried it
public class SmsApp extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String strUri=content://sms/inbox;
Uri urisms=Uri.parse(strUri);
//try{
Cursor c=this.getContentResolver().query(urisms, null, null, null,
null);
while(c.moveToNext())

 -~--~~~~--~~--~--~---



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: how to read sms from inbox

2009-09-10 Thread Mark Murphy

eaindra nilar wrote:
 Hi,
 You can use this code for reading sms inbox
 I already tried it
 public class SmsApp extends Activity {
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 String strUri=content://sms/inbox;
 Uri urisms=Uri.parse(strUri);
 //try{
 Cursor c=this.getContentResolver().query(urisms, null, null,
 null, null);
 while(c.moveToNext())

AFAIK, this technique is undocumented and unsupported.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: how to read sms from inbox

2009-09-10 Thread kapnkore
Does it also mean that there is knowway to do this?

On Thu, Sep 10, 2009 at 4:35 PM, Mark Murphy mmur...@commonsware.comwrote:


 eaindra nilar wrote:
  Hi,
  You can use this code for reading sms inbox
  I already tried it
  public class SmsApp extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  String strUri=content://sms/inbox;
  Uri urisms=Uri.parse(strUri);
  //try{
  Cursor c=this.getContentResolver().query(urisms, null, null,
  null, null);
  while(c.moveToNext())

 AFAIK, this technique is undocumented and unsupported.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---