Skip to Content
0

Agentry android client deployment with ESRI maps error - NullPointerException

Oct 09, 2017 at 03:30 AM

65

avatar image

Hi,

We are in the process of integrating our Agentry client with GIS maps for an Android device. We have used Android Studio for building the agentry client for android using the below components:

Agentry SDK - SP15 PL7
GIS SDK - 51051404_1.zip
ESRI SDK - arcGIS Runtime SDK for Android 10.2.9

The steps followed are attached here.

1. Import agentry sdk into agentry studio using the build.gradle file under AgentryAndroidClientSolution folder

2. Copy the GIS SDK folder to the local directory.

Now import the project as a module GIS SDK\GIS\MobileAppsGISLibrary

Multiple projects will appear below as sub dependencies:

3. Add the Maven link for ESRI to the project level gradle script:

allprojects {

repositories {

jcenter()

// add the esri arcgis maven repo

maven {

url 'http://esri.bintray.com/arcgis'

}

}

}

Add the following to the android manifest:

<uses-feature android:glEsVersion="0x00020000" android:required="true" />

4. The .apk file gets exported successfully however upon installing it on the Android Samsung II tablet (android version 7.0) a null pointer exception is issuesd:

?.;]]==\\/Crash: java.lang.NullPointerException

The agentry client was able to run on the tablet until after login and sync then crashes with the following:

com.sap.mobile.platform.client.openui.extensions.baseadapters.gis.common.MapViewController.setDataSource(com.sap.mobile.platform.client.openui.extensions.baseadapters.common.model.AgentryDataSourceI)' on a null object reference

at com.sap.mobile.platform.client.openui.extensions.BaseLocationCollectionAdapter.initialize(BaseLocationCollectionAdapter.java:54)

Can you please help us? We are trying to deploy this for our customer urgently and need this resolved at the earliest

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Hajira Syeda Oct 12, 2017 at 09:07 PM
0

Hi,

We were able to resolve the null pointer exception by maintaining the PREF_MAP_TYPE = ESRI under the Client Globals section of the mobile application's configpanel settings.

Thanks!

Share
10 |10000 characters needed characters left characters exceeded