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..!!!
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..
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
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.