@Override protected void onResume() { super.onResume(); // Call MapView.unpause to resume map rendering when the activity returns to the foreground. mMapView.unpause(); //refresh map/layers here? }
In case anyone is having this issue or has it in the future. I Revisited this problem after some time and fixed it.
It was due to architecture issues, and was solved by creating a global variable of a Geodatabase and always using that variable for database operations. Previously I was creating new instances of a geodatabase and using that for inserts.
So here is what I do now:
static Geodatabase localGDB; //declare global variable in main activity localGDB = new Geodatabase("path/to/local/my.geodatabase"); //instantiate geodatabase in on create or elsewhere MyActivityWithGlobalVar.localGDB //reference localGDB variable in other activities in this way when doing anything to it
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.