Android hyperlink to local file

202
1
07-01-2021 06:41 AM
JChan
by
New Contributor

I've created this post to highlight an issue that hasn't been solved so far in my knowledge.

I'm trying to include some PDF documentation in my survey, with an HTML link to a local file. This local file is bundled with the survey via the 'media' folder.

I've used DeonLengton's method below to create the HTML link, and can confirm it works for Windows. However the HTML link generated for Android doesn't seem to work, even though file path is correct.

Does anyone know what is the correct file path for Android to reach the Survey media files?

 

Android file paths I've tried: 

  • /storage/emulated/0/Android/data/com.esri.survey123/files/ArcGIS/My Surveys/{UniqueSurveyId}/esriinfo/media/Doc.pdf
  • file:///storage/emulated/0/Android/data/com.esri.survey123/files/ArcGIS/My Surveys/{UniqueSurveyId}/esriinfo/media/Doc.pdf
  • file:///Internal Storage/Android/data/com.esri.survey123/files/ArcGIS/My Surveys/{UniqueSurveyId}/esriinfo/media/Doc.pdf

Link to create HTML links: https://community.esri.com/t5/arcgis-survey123-blog/html-links-for-survey123-to-just-about-anything-...

Link to replies where several users faced the same Android file path problem: https://community.esri.com/t5/arcgis-survey123-questions/survey-123-hyperlink-to-local-file/td-p/818...

0 Kudos
1 Reply
DougBrowning
MVP Notable Contributor

I have worked with Android storage before but I can not get it to work either. 

I think it would be cool to add this option to Linked Content.  Right now it is just csv files but adding PDFs and other docs would be powerful.  Esp since I could then link to it from several forms.  Maybe post up a ArcGIS Ideas on this?

Thanks