Hi All,
I'm having some problems querying the SMS content provider to obtain in my application. My code is as follows:
When I try to run this code in an emulator I get an error saying my application has to close.
Does anyone know why the above code would cause a problem? I think that "person" is one of the columns returned by the SMS content provider.
If anyone has any ideas where I am going wrong I would be very grateful! Also if anyone knows the rest of the columns provided by this content provider I would also be very greatful too...
thanks in advance,
Phil
I'm having some problems querying the SMS content provider to obtain in my application. My code is as follows:
Code:
String columns[] = new String[] { "person"};
String url = "content://sms/inbox";
Uri uri = Uri.parse(url);
Cursor cur = managedQuery(uri,
columns, // Which columns to return
null, // WHERE clause; which rows to return(all rows)
null, // WHERE clause selection arguments (none)
null); // Order-by clause (ascending by name)
When I try to run this code in an emulator I get an error saying my application has to close.
Does anyone know why the above code would cause a problem? I think that "person" is one of the columns returned by the SMS content provider.
If anyone has any ideas where I am going wrong I would be very grateful! Also if anyone knows the rest of the columns provided by this content provider I would also be very greatful too...
thanks in advance,
Phil