What is the dataype of the GPS Location object? It apparently is not one of these types : Lists, Arrays, Maps, Strings, primitive types and user defined types, as it does not write to file when used in an list element via RandomAccessFile.WriteObject. It displays as this:
Code:
(ArrayList) [Location[gps 41.908098,-88.209641 acc=14 et=+1d9h1m25s31ms alt=201.0 vel=0.0 {Bundle[mParcelledData.dataSize=40]}]]
And I am guessing that the {Bundle...} portion is a problem.
If you needed to save a list of locations, and RandomAccessFile is not an option, is there an alternative?
My challenge is that Location is part of a user defined datatype(UDD), and I am attempting to save a list of this UDD to file, and read it back. When the list of UDD is read back, the type of the location element is lost (all values are null), and when I try to initialize2(lat,lon) the location type element, it fails, and if I try to check if it isInitialized (as a Location) I get this error:
Code:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean anywheresoftware.b4a.gps.LocationWrapper.IsInitialized()' on a null object reference
I was unable to find a new thread on this subject, and the question was posted in this thread previously, so I am attempting to ask the question in a way that is applicable to the main subject of this thread.
Thanks,
Gentry