Admob Emulatör sorunu
Arkadaslar eclipse ile android uygulama yazıyorum.Fakat uygulamama hiç bir şekilde bir admob banner ekleyemedim.Bende sıfırdan basit tek layoutlu bir proje oluşturup bir sitedeki gibi yapmaya basladım.Yaptım fakat Run dedigimde uygulama emulatöre gelmiyor %99 da takılı kalıyor.
Sizce sorun ne olabilir?
MainActivity
[code]
package com.example.reklamdene;
import android.app.Activity;
import android.os.Bundle;
import com.google.android.gms.ads.*;
import com.mobilhanem.reklamekleme.R;
public class MainActivity extends Activity {
AdView adView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);
}
}
[/code]
activity_main
[code]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.gms.ads.AdView android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="ca-app-pub-1556795729324070/xxxxxxx "
ads:adSize="BANNER"/>
</LinearLayout>
[/code]
manifest
[code]<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mobilhanem.reklamekleme"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:label="@string/app_name">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<activity android:label="@string/app_name" android:name="Anasayfa">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
</manifest>[/code]