Mobile SDK error: OPERATION_NOT_ALLOWED
I have downloaded and registered for evaluation with the Premium Mobile SDK for Android. However, on initialization, an error is returned: OPERATION_NOT_ALLOWED. Is there something I am doing wrong? Is there something HERE has to do centrally at their end to give an assessment?
mapFragment = (MapFragment)getFragmentManager().findFragmentById(R.id.mapfragment);
mapFragment.init(new OnEngineInitListener() {
@Override
public void onEngineInitializationCompleted(OnEngineInitListener.Error error) {
Log.wtf("Main", "error: " + error.toString());
source to share
When you registered the grade, you were asked about the namespace.
This namespace is actually applicationId
your application (which you put in build.gradle
).
If you can't remember the namespace you provided during registration, just register a new grade with the app you are using. The original namespace you provided is not available for retrieval from Control Panel. It took me a couple of hours to find out.
source to share
Also make sure you update your AndroidManifest.xml with the estimated values:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity
...
</activity>
<meta-data android:name="com.here.android.maps.appid" android:value="your evaluation value"/>
<meta-data android:name="com.here.android.maps.apptoken" android:value="your evaluation value"/>
<meta-data android:name="com.here.android.maps.license.key" android:value="your evaluation value"/>
<service android:exported="true" android:label="HereMapService" android:name="com.here.android.mpa.service.MapService" android:process="global.Here.Map.Service.v2">
<intent-filter>
<action android:name="com.here.android.mpa.service.MapService">
</action>
</intent-filter>
</service>
</application>
source to share