2011-12-21 4 views
1

マップビューでGoogleマップを読み込もうとしています。 main.xmlにgoogle APIキーを挿入しました。APIキーを挿入した後にAndroidのGoogleマップが読み込まれない

これは私のマニフェスト・ファイルです:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="My.google.mao" 
android:versionCode="1" 
android:versionName="1.0" > 
<uses-permission android:name="android.permission.INTERNET" /> 

<uses-sdk android:minSdkVersion="7" /> 

<application 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" > 
    <activity 
     android:name=".GmapActivity" 
     android:theme="@android:style/Theme.NoTitleBar" 
     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> 

これはmain.xmlです:

<?xml version="1.0" encoding="utf-8"?> 
    <com.google.android.maps.MapView 
     xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/mapview" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:clickable="true" 
    android:apiKey="Api key"/> 

//Api key has been inserted 

のみボックスはMapViewの中にロードされている、誰もが私の問題を解決することができますか?

答えて

1

シグネチャが異なるため、デバッグキーとリリースキーが混在している可能性があります。両方が必要です。 programaticaly selecting the right key

+0

役立つAPIキーの生成に問題がある場合は、それが可能であってもよいが、どのように私のできることを

私のprooblemをolive誰もこれで私を助けますか? –

0

上のポストは、この問題は、2つの状況で来るあり これらの用途にpermissonsを与えるも、コアの位置をアクセスも、細かい場所

ともう一つは、あなたがそうTRYAGAIN適切に生成する正しいAPIキー与えenot Arはアクセスは、 APIキーは、あなたのシステムに

に動作します、あなたが私はあなた

関連する問題