Unable to access Android content provider -
i can see in logcat activitymanager
reporting particular content provider. use following code try access content provider in order learn more it:
cursor cursor = context.getcontentresolver().query(uridsds, null, null, null, null); string[] columnnames = cursor.getcolumnnames(); log.d(tag, "columnnames=" + columnnames.tostring());
unfortunately, after trying cursor, see following error in logcat:
failed find provider __
what's problem? why can not access provider? access restricted apps? there way go adb or else see of available content providers on device?
make sure add correct uri example
uri uridsds = uri.parse( "content://aaa.aaa/values");
Comments
Post a Comment