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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -