How to persist android LatLng object with ORMLite? -
There are some problems trying to continue the following classes on Android:
@dibesfeld Private INF; Name of the @DatabaseField Private String; @DatabaseField Private String Address; @ DatabaseField Private Wide Long Place; @ Database Field Personal Float Rating; The problem is that the Location field belongs to LatLng which comes with Google Maps Android Library so I do not have access to it. When I try to continue this class with ORMLite, I am getting the following exception:
java.lang.IllegalArgumentException: ORMLite to class com.google.android.gms.maps No way to store for address field location. Model.LatLng Use another class or a custom persister
Do anyone know how to solve without changing this type of space? I have tried to make a custom persister, but it is not clear how this is done correctly with the examples given by the document.
Thank you
You should create an ORMlite unit like the Lerting entity and store one Should and should be added in the context of its model unit. The other way is to simply add two separate fields (latitude and loan) to different model units. I have used it for the first time
Comments
Post a Comment