I'm having some problems getting plates to load into my MapView in Android development. I searched and looked for similar problems here, but so far no luck.
I looked at the instructions here and got the key of my debugging API. I injected this into my MapView.
I checked that my emulator and my debug device have an internet connection.
I have my own tag for accessing the Internet in my manifest file, which is located before the application tag.
I do not know what else to check.
I am also not sure of a better way to develop this. It seems that I cannot debug a properly signed application, since the debug repository needs the same password - android. That would mean that every time I go to build the releases, I have to change the key, which seems very fragile!
Is there any way to develop and release an assembly with my own map API key?
Some code to view:
main.xml:
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:apiKey="??:??:??:??:??:??:??:??:??:??:??:??:??:??:??:??"
/>
AndroidManifest.xml:
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0"
package="com.my.package.name"
>
<uses-sdk android:minSdkVersion="3"></uses-sdk>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:debuggable="true"
>
<activity
android:name=".MyMainClass"
android:label="@string/app_name"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<uses-library android:name="com.google.android.maps" />
</application>
</manifest>
Any help is greatly appreciated.
source
share