Hi, I guess the SMS api is not open for public use yet. There are no comprehensive docs on this topic as well. The way you are accessing the Content Provider might change in the future and hence, your app will break.
The SMS table is tightly coupled with the notifications as well. You need to manage them, but at this point, it seems impossible to do so. http://tech-droid.blogspot.com/2009/09/sms-blocking-in-android.html Thanks and Regards, Kumar Bibek On Mar 10, 2:55 pm, Olivier <olivier.marga...@gmail.com> wrote: > Hi! > It is the last problem I have before finishing my widget so I beg you > to help me! > I've created a widget wich can navigate in SMS/Inbox, and deleting > them... > When I delete one at the position 5 for example, this one is deleted, > the other next are at the position before and the messages before the > one deleted don't change of position... All seem's to bee right... but > the sms at postion 5 is null and so can't be open... When I exit from > the widget and relaunch it, all seem's normal, and the sms at position > 5 is the old at position 6, what is expected... > I use the classic method: > Uri uri=Uri.parse("content://sms/Inbox"); > Cursor cursor=getContentResolver()query(uri,null,null,null,null); > cursor.moveToPosition(i); > ... > > But I think that there is a probleme because the sms database isn't > close unless I close my widget. > So can I force android to close it and reopen after, or shoold I use > TWOpenHelper openHelper = new TWOpenHelper(context); > SQLiteDatabase database = openHelper.getReadableDatabase(); > in this last case I think I need the real uri of sms database (data/ > data/<package_name>/databses) wich is?... > > thank's for giving me your opinion and really hope a little help to > finish it. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en