Locus and the attached gpx file on Gmail

Started by beonun, November 03, 2011, 04:50:21

0 Members and 1 Guest are viewing this topic.

beonun

I have received a mail with the attached gpx file on Gmail.
But the download box was not appeared because Google did not support the gpx file.
So I have installed 'Astro' file manager, and  set 'Preference/Enable Browser Download'.
As a result, I could see the download box of the attached gpx file.
When I touched the download box, Oruxmaps was excuted.

I want to excute Locus when I touch the download box of gpx file.
How can I do to do this?
  •  

Menion

#1
hi,
  what is your version? I have just tried this and locus works almost as expected. "Download" button on email, cause mess with file and it's not able to import. "Preview" button allow to import correctly. Anyway because GMail client is really stupid with handling with attached files, I really suggest to use app like "Save my attach" that allow download files correctly and then simply import them to Locus manually (of course if "Preview" button functionality don't work for you)
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •  

beonun

#2
Thanks Menion !

Somebody answered me :

<intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="file" />                              
                <data android:mimeType="*/*" />
                <data android:pathPattern=".*\.gpx" />
                <data android:host="*" />
</intent-filter>
He says :
If the above code is added in Locus' AndroidManifest.xml,  you could open the gpx file on Locus.

Would you test this ?
If it is possible, would you bring me Locus apk beta to test this ?

I always appreciate for your reply.
  •  

Menion

#3
yes this filter is already there. Should be in last market version ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •  

beonun

#4
Special thanks !  Menion!

My phone is Galacy S2 and Gingerbread 2.3.5
Anyway,  I have reviewed AndroidMenifest.xml of Locus 1.14.0.1 and OruxMaps 4.5.7 to solve this.
I understand this depends on Gmail's attached file support policy.

In this situation,
if the below code is insertd in AndroidMenifest.xml of Locus, I could excute Locus at Gmail's gpx file download by helping Astro file manager.
 
<data android:scheme="content" android:mimeType="application/octet-stream" />

I think this may not be desirable on Locus, but considerable in this situation, anyway.
The best is Gmail's file support policy change, for sure.
I want you to  review about this.


Thanks again for your quick reply.
  •  

Menion

#5
I'm sorry but I'll not add this into manifest. This was already there for one version, but this line catch almost every request in system and it cause really mess. So you have to use any alternative way to import GPX file from email to locus
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
  •