Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to show my public accessible ArcGIS Online map with URL on a simple Hello World PhoneGap project with Eclipse. Eclipse threw out the following error in LogCat.

Web Console:RequestError: Unable to load file: //{MapId}?f=json status: 0 at

Just wondering anyone have had any successful experience with using ArcGIS Online web map with PhoneGap?

share|improve this question
Thanks Sunil for your quick response. However, the Html file was using exactly the same ArcGIS JS api as you pointed out: <script src="…;. For some reason, stackexchange omitted out "http". – alextc May 7 '13 at 12:32
check out this sample… – Sunil May 7 '13 at 12:54
I gave the samples there a go. Found the live sample worked well; but when downloaded and unzipped it to local and ran the sample locally, it threw out the same error on Chrome. "Unable to load the file... ..." Could be an Ajax issue? As it runs on Android, there will be no proxy file. Any idea? Thanks! – alextc May 7 '13 at 13:30

Here is the solution:

esri.arcgis.utils.arcgisUrl = esri.arcgis.utils.arcgisUrl.replace("file:", "http:");

share|improve this answer
Your link seems to be to a different thread from the one that you intended. – PolyGeo May 18 '14 at 10:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.