AnsweredAssumed Answered

Add webmap from arcgis online to Android

Question asked by ADIT0019 on Sep 22, 2014

I am trying to add a web map from ArcGIS online, but the application crashes every time I run it. I tried initiating the map from Java as well as XML. this is the map:

http://adit0019.maps.arcgis.com/home/item.html?id=610857a27b3e4ed9864e6d54b0170cab

 

   A snippet of my code :

public View onCreateView(LayoutInflater inflater, ViewGroup container,

            Bundle savedInstanceState) {

  View rootView = inflater.inflate(R.layout.fragment_home, container, false);

  m_MapView = new MapView(getActivity(), "http://adit0019.maps.arcgis.com/home/item.html?id=610857a27b3e4ed9864e6d54b0170cab", "", "");

     return rootView;

Outcomes