Select to view content in your preferred language

The map wouldnt Show Up in HelloWorld Application

4678
11
Jump to solution
11-18-2012 01:23 AM
cadgism
Occasional Contributor
Hi All

I am trying to run the HelloWorld sample.  There were no errors. It compiles (Builds..). The emulator starts succesful
Even the Application title appears but No Maps!!!.
What is wrong please..!!!

===========================================================================================================
[2012-11-18 14:09:40 - HelloWorld] Android Launch!
[2012-11-18 14:09:40 - HelloWorld] adb is running normally.
[2012-11-18 14:09:40 - HelloWorld] Performing com.esri.arcgis.android.samples.helloworld.HelloWorld activity launch
[2012-11-18 14:09:40 - HelloWorld] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'ArcGISAVD'
[2012-11-18 14:09:40 - HelloWorld] Uploading HelloWorld.apk onto device 'emulator-5554'
[2012-11-18 14:11:36 - HelloWorld] Installing HelloWorld.apk...
[2012-11-18 14:11:46 - HelloWorld] Success!
[2012-11-18 14:11:46 - HelloWorld] Starting activity com.esri.arcgis.android.samples.helloworld.HelloWorld on device emulator-5554
[2012-11-18 14:11:48 - HelloWorld] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.esri.arcgis.android.samples.helloworld/.HelloWorld }
================================================================================================================
0 Kudos
11 Replies
by Anonymous User
Not applicable
Original User: aryasharad

I resolved the problem .This was because of the firewall.

Referred to this URL as well :
http://blogs.esri.com/esri/supportcenter/2013/04/01/having-issues-adding-arcgis-online-basemaps-to-a...

Finally, I am sharing the following point which needs to be completed.....
1. If you are on proxy internet connection, set the proxy settings in Emulator APN (Settings-->Wi-Fi Network conection-->More-->Mobile Network Connection--> Access Point Newtork
2. If you have firewall, discussed with your IT team, the following url's must be allowed..

*.arcgis.com
*.arcgisonline.com
*.amazonaws.com
*.virtualearth.net (for Bing maps)
*.esri.com

3. Android SDK does not support x86 Emulator. It is running well on ARM emulator.
4. And last , offcource, user permission tag for Internet connection must be there in AndroidMenifest.xml file

<uses-permission android:name="android.permission.INTERNET" />

Happy Coding....
Sharad Arya
0 Kudos
piyush_ramdaspb
New Contributor
Hi,
i am also facing similar issue....
i hv one question : ArcGIS Online rest API's are working on Android Emulator after setting proxy..it means *.arcgisonline.com is working then why its not opening through apllication....
if i set default proxy setting then my local feature service is visible but arcgis base map is not visible
...............:(
I am not able to rectify why base map and map service are not visble.....
i have tried...
ProxySetup proxySetup = new ProxySetup();
String proxyHost = "myproxy.domain.com";
int proxyPort = 8080 ;
UserCredentials proxyCredentials = new UserCredentials();
proxyCredentials.setUserAccount("userName", "password");

try {
ProxySetup.setupProxy(proxyHost, proxyPort, proxyCredentials);
}
catch (EsriSecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
but not working....

Pl. let me know is there any another way for setting proxt through code

thansksss
12-19 10:43:48.146: W/xyAuthenticationHandler(799): Authentication scheme ntlm not supported
12-19 10:43:48.174: W/DefaultRequestDirector(799): Authentication error: Unable to respond to any of these challenges: {ntlm=Proxy-Authenticate: NTLM, negotiate=Proxy-Authenticate: Negotiate}
12-19 10:43:48.474: E/ArcGIS(799): url =http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer
12-19 10:43:48.474: E/ArcGIS(799): com.esri.core.io.EsriServiceException: Proxy Authorization Required
12-19 10:43:48.474: E/ArcGIS(799): at com.esri.core.internal.io.handler.c.a(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799): at com.esri.core.internal.io.handler.g$1.handleResponse(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799): at com.esri.core.internal.io.handler.g$1.handleResponse(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
12-19 10:43:48.474: E/ArcGIS(799): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:627)
12-19 10:43:48.474: E/ArcGIS(799): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:616)
12-19 10:43:48.474: E/ArcGIS(799): at com.esri.core.internal.io.handler.g.a(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799): at com.esri.core.internal.io.handler.g.a(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799): at com.esri.core.internal.tasks.a.p.a(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799): at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initLayer(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799): at com.esri.android.map.ags.ArcGISTiledMapServiceLayer$1.run(Unknown Source)
12-19 10:43:48.474: E/ArcGIS(799): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
12-19 10:43:48.474: E/ArcGIS(799): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
12-19 10:43:48.474: E/ArcGIS(799): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
12-19 10:43:48.474: E/ArcGIS(799): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
12-19 10:43:48.474: E/ArcGIS(799): at java.lang.Thread.run(Thread.java:856)
12-19 10:43:48.944: W/xyAuthenticationHandler(799): Authentication scheme ntlm not supported
12-19 10:43:48.974: W/DefaultRequestDirector(799): Authentication error: Unable to respond to any of these challenges: {ntlm=Proxy-Authenticate: NTLM, negotiate=Proxy-Authenticate: Negotiate}
12-19 10:43:49.124: E/ArcGIS(799): url =http://10.217.38.145/ArcGIS/rest/services/RelatedFieldinspectiontool/MapServer
12-19 10:43:49.124: E/ArcGIS(799): com.esri.core.io.EsriServiceException: Proxy Authorization Required
12-19 10:43:49.124: E/ArcGIS(799): at com.esri.core.internal.io.handler.c.a(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799): at com.esri.core.internal.io.handler.g$1.handleResponse(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799): at com.esri.core.internal.io.handler.g$1.handleResponse(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
12-19 10:43:49.124: E/ArcGIS(799): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:627)
12-19 10:43:49.124: E/ArcGIS(799): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:616)
12-19 10:43:49.124: E/ArcGIS(799): at com.esri.core.internal.io.handler.g.a(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799): at com.esri.core.internal.io.handler.g.a(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799): at com.esri.core.internal.tasks.a.p.a(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799): at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.initLayer(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799): at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer$1.run(Unknown Source)
12-19 10:43:49.124: E/ArcGIS(799): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
12-19 10:43:49.124: E/ArcGIS(799): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
12-19 10:43:49.124: E/ArcGIS(799): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
12-19 10:43:49.124: E/ArcGIS(799): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
12-19 10:43:49.124: E/ArcGIS(799): at java.lang.Thread.run(Thread.java:856)
12-19 10:43:50.526: D/ArcGIS.LifeCycle(799): surface.addLayer ->http://10.217.38.145/ArcGIS/rest/ser...tool/MapServer
12-19 10:43:50.605: D/ArcGIS.LifeCycle(799): >>>>FeatureLayer initLayer
12-19 10:43:51.084: D/dalvikvm(799): GC_CONCURRENT freed 225K, 11% free 2991K/3348K, paused 75ms+29ms, total 202ms
12-19 10:43:51.415: W/xyAuthenticationHandler(799): Authentication scheme ntlm not supported
12-19 10:43:51.465: W/DefaultRequestDirector(799): Authentication error: Unable to respond to any of these challenges: {ntlm=Proxy-Authenticate: NTLM, negotiate=Proxy-Authenticate: Negotiate}
12-19 10:43:51.795: E/ArcGIS(799): Failed to initialize the ArcGISFeatureLayer.
0 Kudos