ayoola-solomon / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Mytracks API: How to get the locations list? #627

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Use the mytracks sample code, 
2.Use the content provider to get some track getTrack(int)
3.Once you have the track object, try to use the method getLocations

I, expect an array list with the locations, but I get an empty array list 
instead.

Latest Mytracks (1.1.10 rc3) on Android 2.3.3 , Xperia Arc.

I checked the code for the Track class, and I noticed a comment:
"The track points (which may not have been loaded)." 

So, sorry about my ignorance, but, How can I be sure to load the locations in 
the track? I have the google search but couldn't find anything useful on this. 

Original issue reported on code.google.com by saul.rom...@gmail.com on 8 Nov 2011 at 5:14

GoogleCodeExporter commented 9 years ago
That method should really be deprecated. You have to go through the content 
provider to get the tracks points.

Original comment by sandordo...@google.com on 8 Nov 2011 at 5:13

GoogleCodeExporter commented 9 years ago
Ok

Original comment by saul.rom...@gmail.com on 8 Nov 2011 at 9:59

Attachments: