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 - Kenneth Evans

#1
First, I thought I had seen this topic before, but I cannot find it now.  In order to parse GPX output from OruxMaps, it would be nice to have the XSD.  However, the link in



<om:oruxmapsextensions xmlns:om="http://www.oruxmaps.com/oruxmapsextensions/1/0">http://www.oruxmaps.com/oruxmapsextensions/1/0">



does not exist, and I have not found the XSD.  Is there a place to find it?



In lieu of having a real one, I generated one, which works for <om:bpm> but probably doesn't have other elements.  In case it would be useful to others in place of the real one, here it is:


<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.oruxmaps.com/oruxmapsextensions/1/0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="oruxmapsextensions">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="ext">
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:byte">
                <xs:attribute type="xs:string" name="type"/>
                <xs:attribute type="xs:byte" name="subtype"/>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <xs:element type="xs:string" name="bpm"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
#2
Quote from: "orux"The problem is that there may be problems with the removable memory.

but later I will try to enable that change.



orux

Thanks.



It looks like the intent was originally to have it on the SD card, which seems like a good idea (so the user can see the files, for example).  The problem now is that it is using internal memory for "external" storage that the user can see.



This change is thanks to Google.  I don't see a good way to deal with it, myself.  Writing code to find the SD card is likely to break.  You would like to have something in the API that does what getExternalStorage () used to do, e.g. find the SD card if one is there.  Providing a way for the user to change the default directory himself, is the best solution I have found.  In that case the user can decide if there may be problems with the removable memory (I never encountered any except you can't use the app when the card is not there.)
#3
In more recent versions of Android (my Galaxy S4, for example) the call to getExternalStorageDirectory() no longer gets the external storage.  It returns /storage/emulated/0/, and on the S4 this is internal storage (which is limited in size).  The external card is at /storage/extSdCard.  For a data-intensive app such as Oruxmaps, this can eat up the internal storage.



I found I could individually change the settings to use /storage/extSdCard/oruxmaps for maps. tracks, and waypoints (the directories customwpts, geocaches, mapfiles, mapstyles, overlay, pictures, and tracklogs).  I moved the ones originally in /storage/emulated/0/oruxmaps to /storage/extSdCard/oruxmaps.



However, on restarting OruxMaps, it recreated the ones in /storage/emulated/0/.  I am not sure which ones it is using.  (The settings still have the /storage/extSdCard ones.)



This may not be a bug, but it is is a problem that should be addressed (to avoid filling up internal storage, if for no other reason).



If there is a way to do this that I missed, I apologize.  I didn't see it.
#4
In more recent versions of Android (my Galaxy S4, for example) the call to getExternalStorageDirectory() no longer gets the external storage.  It returns /storage/emulated/0/, and on the S4 this is internal storage (which is limited in size).  The external card is at /storage/extSdCard.  For a data-intensive app such as OruxMaps, this can eat up the internal storage.



I found I could individually change the settings to use /storage/extSdCard/oruxmaps for maps. tracks, and waypoints (the directories customwpts, geocaches, mapfiles, mapstyles, overlay, pictures, and tracklogs).  I moved the ones originally in /storage/emulated/0/oruxmaps to /storage/extSdCard/oruxmaps.



However, on restarting OruxMaps, it recreated the ones in /storage/emulated/0/.  I am not sure what it is using.  (The settings still have the /storage/extSdCard ones.



This may not be a bug, but it is is a problem that should be addressed (to avoid filling up internal storage, if for no other reason).



If there is a way to do this that I missed, I apologize.  I didn't see it.