简体   繁体   English

Here sdk api的高级版本如何工作?

[英]How does the premium version of Here sdk api work?

I signed up with Here sdk Api (Lite version) and I got a 'Freemium' account with an access_key_id and a secret_key as well.我注册了 Here sdk Api(精简版),并获得了一个带有 access_key_id 和 secret_key 的“免费增值”帐户。 Now I want to upgrade my Freemium to Premium because I need the navigation tool for my application and they gave me an app code, api code and licence key (in the same account).现在我想将我的 Freemium 升级到 Premium,因为我需要我的应用程序的导航工具,他们给了我一个应用程序代码、api 代码和许可证密钥(在同一个帐户中)。 when I built the application all I got is a blank page with a button and no errors in my terminal.当我构建应用程序时,我得到的只是一个带有按钮的空白页面,并且我的终端中没有错误。

My Manifest:我的清单:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.here_map_nav">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:hardwareAccelerated="true"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <meta-data
        android:name="com.here.android.maps.appid"
        android:value="XXX" />
    <meta-data
        android:name="com.here.android.maps.apptoken"
        android:value="XXX" />
    <meta-data
        android:name="com.here.android.maps.license.key"
        android:value="XXX" />

    <service
        android:name="com.here.android.mpa.service.MapService"
        android:label="{YOUR_LABEL_NAME}"
        android:exported="false">
        <intent-filter>
            <action android:name="{YOUR_INTENT_NAME}"/>
        </intent-filter>
    </service>

</application>

By the way I don't know what to put in {YOUR_INTENT_NAME} and {YOUR_LABEL_NAME} .顺便说一句,我不知道在 {YOUR_INTENT_NAME} 和 {YOUR_LABEL_NAME} 中放什么。 I don't know if it's the main problem or I should create an account for a premium version with my billing infos (since each account takes only one project)我不知道这是否是主要问题,或者我应该使用我的帐单信息为高级版本创建一个帐户(因为每个帐户只需要一个项目)

Any help or clarifications would be appreciated!任何帮助或澄清将不胜感激!

try using below manifest.xml, it seems like action.VIEW is missing in yours.尝试使用下面的 manifest.xml,您的好像缺少 action.VIEW。

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <meta-data android:name="com.here.sdk.access_key_id" android:value="xx" />
    <meta-data android:name="com.here.sdk.access_key_secret" android:value="xx" />

    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

</application>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM