i want select distinct on content://sms in order need know how open content://sms database , make on raw query.
currently using normal query via contentresolver this:
contentresolver mcontectresolver = context.getcontentresolver(); uri uri = uri.parse("content://sms/"); string[] mprojection = { "address", "person", "body", "seen" }; cursor cursor = mcontectresolver.query(uri, mprojection, null, null, null);
any appreciated.
answer question is:
you can't make raw query on android internal database content://sms/ unless have root privileges open database.
natively android blocks database , has special tool open limited privileges , tool called contentresolver.
may become handy know information: if want search database in /data/data/databases folder. search rooted phone or android virtual device.
Comments
Post a Comment