FJ Software Foren-Übersicht  
 Homepage   •  Suchen   •  FAQ   •  Mitgliederliste   •  Registrieren   •  Login
 Content provider for Notes doesn't work Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
WillowTree



Anmeldedatum: 14.11.2014
Beiträge: 1
Wohnort: Netherlands

BeitragVerfasst am: Fr Nov 14, 2014 13:40 Antworten mit ZitatNach oben

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!
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 31906
Wohnort: Tirol

BeitragVerfasst am: Fr Nov 21, 2014 00:51 Antworten mit ZitatNach oben

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.

Bitte benutzt auch die Forum-Suche bzw. die FAQ
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
Beiträge der letzten Zeit anzeigen:      
Neues Thema eröffnenNeue Antwort erstellen


 Gehe zu:   



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.

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme :: Alle Zeiten sind GMT + 1 Stunde
Deutsche Übersetzung von phpBB.de