How to open mmpk file in Android app

1698
4
02-10-2017 03:47 AM
KamalMittal
New Contributor III

I am trying to open a .mmpk file (Mobile map package file ) in my app but not getting any result .(Black blank screen appearing).

Sample code provided by ArcGis for Open Mobile Map Package  were also not working.

Please provide me solution.

0 Kudos
4 Replies
AlexanderNohe1
Occasional Contributor III

What sample were you using to open the mobile map package?

Do you have any sample code that you are willing to share?

0 Kudos
KamalMittal
New Contributor III

Hi Alexander,

Below is the link of code from Github which I am using. In this code, there is a function loadMobileMapPackage. 

arcgis-runtime-samples-android/MainActivity.java at master · Esri/ArcGIS-runtime-samples-android · G... 

I am getting an error inside addDoneLoadingListener method. 

 

0 Kudos
AlexanderNohe1
Occasional Contributor III

Do you have a link to the MMPK that you are trying to load?  It is already downloaded on the device?

Do you get anything in Log cat upon firing this method?

0 Kudos
KamalMittal
New Contributor III

Yes, I have put MMPK file on the device.

In Log cat, I am getting only "Failed to Load" error. 

Can you please check sample code at your end as I am also not able to run sample code of MMPK file. I have doesn't change anything in the code. 

0 Kudos