User Tools

Site Tools


manual:advanced:locus_api:information_about_locus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
manual:advanced:locus_api:information_about_locus [2015/05/21 15:24] – created mstupkamanual:advanced:locus_api:information_about_locus [2015/09/07 17:49] (current) – [Information about Locus] mstupka
Line 1: Line 1:
 ====== Information about Locus ====== ====== Information about Locus ======
  
-Most important for every extension - //is Locus installed?//+The most important for every extension - //is Locus Map installed?//
  
-__Starting point for similar questions are two classes__+__The starting point for similar questions are these two classes:__
  
   * [[https://bitbucket.org/asamm/locus-api-android/src/92c69dd50f58665c5bf72653099080995140e609/src/locus/api/android/utils/LocusUtils.java?at=default|LocusUtils]] - tools for work with versions   * [[https://bitbucket.org/asamm/locus-api-android/src/92c69dd50f58665c5bf72653099080995140e609/src/locus/api/android/utils/LocusUtils.java?at=default|LocusUtils]] - tools for work with versions
Line 10: Line 10:
 ===== Basic tasks ===== ===== Basic tasks =====
  
-==== Is Locus installed ====+==== Is Locus installed====
  
 Get list of available versions on your device Get list of available versions on your device
Line 27: Line 27:
 and check only //true/false// result. and check only //true/false// result.
  
-==== Is Locus running ====+==== Is Locus running====
  
 If you know //LocusVersion// you want to check, use following method If you know //LocusVersion// you want to check, use following method
Line 40: Line 40:
     }     }
 </code> </code>
- 
-===== Advanced parameters ===== 
- 
-==== Where is Locus root directory ==== 
- 
-  - obtain //LocusInfo// object (description in **Is Locus running** question) 
-  - get absolute root path by //LocusInfo.getRootDirectory()// 
- 
-==== Which units has user set in Locus ==== 
- 
-This method is very useful, for making units in your own app same as units in Locus. Advantage is that user do not have to set units on two different places. 
- 
-  - obtain //LocusInfo// object (description in **Is Locus running** question) 
-  - get various units parameters by //LocusInfo.getUnits...()// functions 
- 
-<wrap tip>//LocusInfo// contains quite a lot of interesting information from life of Locus</wrap> 
manual/advanced/locus_api/information_about_locus.1432214653.txt.gz · Last modified: 2015/05/21 16:24 (external edit)