tags:

views:

20

answers:

0

I'd like to launch the activity which displays the sms inbox from a broadcast receiver. However, I haven't seen a way to do it using the SDK. I think it needs to be something like this but it doesn't work for me.

 Intent defineIntent = new Intent(Intent.ACTION_MAIN); 
 defineIntent.addCategory(Intent.CATEGORY_LAUNCHER);
 defineIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK );
 defineIntent.setData(Uri.parse("content://sms/inbox"));  
 _context.startActivity(defineIntent);