I am starting with programming for Android. Now I am came across a problem with the ContentProvider for Notes.
The line "localCursor = yourCR.query(uritest, null, null, null, null);" returns NULL I tried several URI's. With Tasks it works fine.
Eclipse gives the following error:
11-14 12:10:21.312: E/DatabaseUtils(1008): Writing exception to parcel
11-14 12:10:21.312: E/DatabaseUtils(1008): java.lang.IllegalArgumentException: Unknown Uri: content://com.fjsoft.myphoneexplorer.notes/notes
11-14 12:10:21.312: E/DatabaseUtils(1008): at com.fjsoft.myphoneexplorer.notes.NoteSearchProvider.query(NoteSearchProvider.java:77)
11-14 12:10:21.312: E/DatabaseUtils(1008): at android.content.ContentProvider$Transport.query(ContentProvider.java:178)
11-14 12:10:21.312: E/DatabaseUtils(1008): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
11-14 12:10:21.312: E/DatabaseUtils(1008): at android.os.Binder.execTransact(Binder.java:338)
11-14 12:10:21.312: E/DatabaseUtils(1008): at dalvik.system.NativeStart.run(Native Method)
11-14 12:10:21.312: E/DatabaseUtils(1008): Writing exception to parcel
11-14 12:10:21.312: E/DatabaseUtils(1008): java.lang.IllegalArgumentException: Unknown Uri: content://com.fjsoft.myphoneexplorer.notes/NoteSearchProvider
11-14 12:10:21.312: E/DatabaseUtils(1008): at com.fjsoft.myphoneexplorer.notes.NoteSearchProvider.query(NoteSearchProvider.java:77)
11-14 12:10:21.312: E/DatabaseUtils(1008): at android.content.ContentProvider$Transport.query(ContentProvider.java:178)
11-14 12:10:21.312: E/DatabaseUtils(1008): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
11-14 12:10:21.312: E/DatabaseUtils(1008): at android.os.Binder.execTransact(Binder.java:338)
11-14 12:10:21.312: E/DatabaseUtils(1008): at dalvik.system.NativeStart.run(Native Method)
I also tried "content://com.fjsoft.myphoneexplorer.notes/notelist"
It is not a big problem.
What i wanted to do is convert notes on a old Samsung phone to MyPhoneExplorer notes.
Is this a bug or do I use the Wrong URI?
Greetings Wim
_________________ Programmer in Java and starting with Android.
I can read and understand German!
There is no contentprovider developed for the notes. The existing provider is just used for the global search-feature in Android. At the moment its not planned to add a full featured contentprovider for the notes.
_________________ Ich bitte um Verständnis daß ich aufgrund des hohen Aufkommens im Forum und meines zeitlichen Rahmens nichtmehr jeden Thread im Forum persönlich lesen bzw. beantworten kann.
Nächstes Thema anzeigen Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen.
Die Webseite kann Cookies verwenden, um Ihre Anmeldeinformationen zu speichern und die Website-Funktionalität für Ihre Verwendung zu optimieren. Weitere Informationen sind auf folgenden Seiten verfügbar Datenschutz und Cookies