android-contentprovider Questions

3

Solved

I am trying to create a custom content provider and I get a error message Unknown URL content://com.example.test.samplecontentprovider/yay I have the following info in my manifest and content pro...
Vaasta asked 22/7, 2011 at 10:1

1

I want to write an App that can identify the phone number of incoming (unknown) calls by looking into a table inside my app (e.g. an SQLite Database Table). I already implemented this in iOS using...

3

Solved

Can someone explain how to use EXDATE when adding event to android calendar? The documentation is pretty unclear about the format in which the EXDATE should be put. I tried many formats, these are ...

1

Solved

I am fetching the contacts which are updated after given time stamp and my code is Uri uri = ContactsContract.Contacts.CONTENT_URI; Cursor cursor = cur = contentResolver.query(uri, null, "contact_...
Cornellcornelle asked 14/8, 2019 at 6:30

5

My app is crashing only in android >= 6.0 (marshmallow) when I try to access a photo URI stored previously in SharedPreferences. Though the image is retrieved for the first time without any error. ...

2

I have defined a provider in my application manifest : <provider android:authorities="com.example.myapp.provider" android:name="com.example.myapp.MyProvider"> </provider> The provi...
Optimist asked 1/6, 2014 at 7:44

0

When moving from Android Gradle Plugin 3.3.2 in a multi module project to 3.4.0 and executing connectedAndroidTest I see a fatal exception. A Google Play Services shared class StringResourceValueRe...

3

Solved

I am making a query on the Android Contacts ContentProvider. I need a Group By clause. In Gingerbread and Honeycomb, I do something like this to search phone numbers and emails at the same time: (...

4

Solved

I have a contact list in a sort order. But in my contact list the name is duplicating with same number. I think the issue is because of the contact list sync with different account. I check with H...

1

I've implemented custom ContactsDirectoryProvider which works fine when Contacts or Dialer applications are searching for contacts using URIs of the form content://com.android.contacts/data/phones/...
Odoriferous asked 2/5, 2017 at 15:10

2

I want to use the android system dialog provided as part of the Storage Access Framework to open a file. I do this with Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); intent.addCategory(...
Farland asked 19/12, 2014 at 14:33

1

I would like the SAF to “launch the navigator in the specified document if it's a folder” (as they call it in the docs). This does not work so i also wonder if i can add storage shortcuts to the S...

2

I'm currently heavily modifying/rewriting an Android app and I have seen a very occasional crash along the following lines: a CursorAdapter method is called, it calls AbstractWindowedCursor#checkPo...

4

Solved

I want to send pdf to my server using multipart request. i am able to choose file correctly and get its name but when i am sending this pdf , i am sending following path /document/raw:/storage/emul...
Rabblerouser asked 27/9, 2017 at 7:38

2

Trying to convert a URI that I got from Intent.ACTION_GET_CONTENT, input stream opens fine for local files, but for URI from drive (/document/acc=1;doc=4089) I get a FileNotFoundException, saying t...
Jerad asked 26/9, 2017 at 9:31

11

Solved

I am developing an app where i am using sqllite3 database to store values. I have Nexus S and Nexus 7 both are unrooted devices. How can i get the database for my app for debugging purpose. I have...

5

Solved

From Android N and upwards I am facing this issue. When I select a file from any apps on the file picker drawer on the left such as Gallery and File Manager, the URI's are received, and I can do wh...
Kelantan asked 23/10, 2018 at 19:55

1

Solved

Here I am attaching the logs : Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/1587 at android.database.DatabaseUtils.readExceptionFromParcel(Dat...

5

I'm building an app where I have a table for events and a table for venues. I want to be able to grant other applications access to this data. I have a few questions related to best practices for t...
Tuba asked 28/9, 2010 at 14:49

0

Recently I Factory Reset my phone and tried running my app on the phone again and now I get this error in Logcat: 09-18 20:15:57.629 29355-29378/com.******.com E/ConfigurationContentLoader: Phenot...
Spanner asked 18/9, 2018 at 17:20

4

Solved

I'm developing an app with (at least) two flavors having different package names - therefore actually two different apps as far as the android system is concerned. The app uses Facebook sharing, so...
Spam asked 12/6, 2015 at 16:18

9

Solved

I understand that Content Providers are made to allow publicly sharing data between applications. However, I'm wondering if anyone has thoughts about making a Content Provider to use just within yo...
Wavemeter asked 8/2, 2011 at 18:15

3

Solved

When I want to check and see if something exists in my ContentProvider what I usually do is something similar to this Cursor c = getContentResolver().query(table,projection,selection,selectionArgs...
Veriee asked 1/5, 2014 at 22:8

1

Solved

I got following Exception while sharing images using FileProvider. Following is the code I used to. { ArrayList<Uri> files = new ArrayList<Uri>(); files.add(getImageUriFromCache(co...

5

Solved

I have MyContentProvider in my app which works fine when I develop and run in debug mode. <provider android:name=".MyContentProvider" android:authorities="com.contactcities" android:exported=...
Limacine asked 10/10, 2012 at 17:10

© 2022 - 2024 — McMap. All rights reserved.