Add webmap from arcgis online to Android

2919
0
09-22-2014 03:08 AM
AdityaNarayanan
New Contributor

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;

0 Kudos
0 Replies