Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Martin2

#1
Developers / Re: [DEV] - Locus Data API (BETA)
January 02, 2012, 09:01:50
Quoteabout "null" in delete ... track is without name?
It has a name. Null will only appear if you first select one or multiple tracks with checkbox and use the right down button / delete.
#2
Developers / Re: [DEV] - Locus Data API (BETA)
December 29, 2011, 21:44:29
Thanks, it works with singleTask! :-)

Another question: how to set the track to temporary when using DisplayData.sendData(this, track, false)? Currently it is neither temporary (hiding temp. items will not hide it) or listed in the track list.

( offtopic bugreport: when deleting track(s) it asks "Do you really want to delete null?" )
#3
Developers / Re: [DEV] - Locus Data API (BETA)
December 27, 2011, 21:21:37
Thank you, it works, but...

If I select a point then Loucs intent ON_LOCATION_RECEIVE always starts a new activity and calls onCreate in my addon. All the internal state of my activity is reset after every point selection. Currently the only solution I see is to persist the state of my activity. I tried to use startActivityForResult like described at http://developer.android.com/reference/ ... Activities but it doesn't work - onActivityResult is never called. Could this be implemented too? Or do you recommend me to use different approach to remember internal activity state (in my case the list of already selected points)?

Thanks in advance!
#4
Developers / Re: [DEV] - Locus Data API (BETA)
December 20, 2011, 23:10:03
Quote from: "menion"hehe, I was already started test your previous post message with error :). Seems that one problem solved ... ok, I'll look at it

Yes, this was my fault :-).

Quote from: "menion"Martin, please try this test version viewtopic.php?f=25&t=1404&p=8598#p8598

It works with this version. Thanks.

Is it possible to "overwrite" previous route with a new one? Maybe by some unique route ID. Because after every computed route a new one is displayed. Maybe an additional intent parameter could specify it ;-). And also if there were extra parameters to specify route description, type, visual properties, etc... ;-)

BTW is it possible to save a route from Locus once it is a temporary one? I found no way to do it so far.

Another feature I'd like to have is that my addon would ask Locus to pick a point for it (Intent with result?). Could this be added too? :-)

Thanks in advance.

PS: later I'd like to add more and more features to my addon to support more of the freemap.sk functionality. For example image gallery, wikipedia placemarks, ... Not sure if alll will be possible to do by using just addon API ;-).
#5
Developers / Re: [DEV] - Locus Data API (BETA)
December 20, 2011, 20:30:43
Hi Menion

I've tried LocusUtils.importFileLocus(LocusAddonPublicLibSampleActivity.this, tempFile, false), but it still prompts the import dialog.
#6
Developers / Re: [DEV] - Locus Data API (BETA)
December 19, 2011, 23:09:57
Hi Menion

I'd like to implement an addon for routing service of http://www.freemap.sk/. Currently I can do it so that first user selects the first point on the map, opens it with (sends it to) my routing addon that stores the point, shows the instructions to select another point and then goes bask to Locus. After choosing destination point the addon asks user for route type (car, hiking, cycle, walk) then gets the GPX from http://www.freemap.sk/ and tells Locus to import it. User can also add multiple stops. My questions:

  • Would it be difficult to add an API to provide additional routing service directly to Locus?
  • Is there a way to import the gpx as temporary one without any intermediate dialog and to show it instantly?

Thanks in advance