I have tried to implement SharedPreferences in my app to save the markers added so when the user leaves the app and returns the markers should then still be there
So after doing some research on how to create a database i found this (has got good information aswell) (http://ift.tt/1lcUAeo)
So i decided to implement that to save my markers added to the map in the database and then retrieve them when the app starts again. But now the problem is when i add this code:
getSupportLoaderManager().initLoader(0, null, this);
the app then crashes with this error:
12-21 20:35:45.094: E/AndroidRuntime(7616): FATAL EXCEPTION: main
12-21 20:35:45.094: E/AndroidRuntime(7616): Process: com.example.main, PID: 7616
12-21 20:35:45.094: E/AndroidRuntime(7616): java.lang.IllegalArgumentException: no position in marker options
12-21 20:35:45.094: E/AndroidRuntime(7616): at com.google.k.a.cl.a(Unknown Source)
12-21 20:35:45.094: E/AndroidRuntime(7616): at com.google.maps.api.android.lib6.c.al.a(Unknown Source)
12-21 20:35:45.094: E/AndroidRuntime(7616): at com.google.maps.api.android.lib6.c.el.a(Unknown Source)
12-21 20:35:45.094: E/AndroidRuntime(7616): at com.google.android.gms.maps.internal.l.onTransact(SourceFile:167)
12-21 20:35:45.094: E/AndroidRuntime(7616): at android.os.Binder.transact(Binder.java:361)
Does anyone know how i can resolve this issue?
Thanks in advance!
PS if you need more info(code) please let me know and i will update my question.
Aucun commentaire:
Enregistrer un commentaire