// Declare your loading map with status recognition in getUnits() function. viewUnits = new Runnable(){ @Override public void run() { getUnits(); } }; //It'll stope the progress only after finish with getUnits(); there you'll do the map's status check. Thread thread = new Thread(null, viewUnits, "MagentoBackground"); thread.start(); m_ProgressDialog = ProgressDialog.show(UnitsModelListViewActivity.this, "Please wait...", "Retrieving data/Loading ...", true);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.