I'm creating an SMS message inside Inbox folder as follows:
ContentValues values = new ContentValues();
values.put("address", sender);
values.put("date", System.currentTimeMillis());
values.put("read", 0); // Message not read
values.put("status", 0);
values.put("type", 1);
values.put("seen", 0);
values.put("body", body);
ContentResolver rslv = context.getContentResolver();
rslv.insert(Uri.parse("content://sms"), values);
This works well, but doesn't fire the usual "SMS received" notification in the top bar and play the notfitication sound. How do I do write such notification code (which presumably calls some SMS application's Intent to raise the notification) ?