I'm trying to run an insert command in an app to another app. I'm taking my ADB Shell command:
adb shell content insert --uri content://com.***.***/device_info --bind store_id:s:12345
Converting that to Java:
Uri contentUri = Uri.parse("content://com.***.***/device_info");
ContentValues contentValues = new ContentValues();
contentValues.put("store_id", storeIdString);
mContext.getContentResolver().insert(contentUri, contentValues);
However when I run that Java code I get the following error:
Unknown URL content://com.***.***/device_info
But if I run that ADB Shell command I get no issues. The same problem happens if I try to query the same URI in code, while the same query via ADB shell command works perfectly fine