Yes GPS is Google Play Services.
First, thanks four replay. I didnt include gps because i dont use it. Or do i maybe have to include it for admob? I just included the google play services.
--
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I think yes, i added the library feeled 100 times. First I download the gps. Then I import them in eclipse. Rightclick, properties -> Android add gps apply ok. But its not working. When i delete the admob code, it works fine without errors.
AdView adView; adView = (AdView)findViewById(R.id.adView); AdRequest adRequest = new AdRequest.Builder().addTestDevice("7DC393B415BE44EB0BBB77E514CE33C3").build(); adView.loadAd(adRequest);
xmlns:ads="http://schemas.android.com/apk/res-auto" // this is at the very beginning under relative layout.
<com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/adView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignLeft="@+id/crypt" android:layout_alignParentBottom="true" ads:adSize="BANNER" ads:adUnitId="ca-app-pub-4252022205312528/1824157895" > </com.google.android.gms.ads.AdView>
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.programmer213.magicrypt" 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:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> <activity android:name="net.programmer213.magicrypt.MainActivity" android:label="@string/app_name" > <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> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/></manifest>
<com.google.android.gms.ads.AdView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/adView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignLeft="@+id/crypt" android:layout_alignParentBottom="true" ads:adSize="BANNER" ads:adUnitId="ca-app-pub-4252022205312528/1824157895" > </com.google.android.gms.ads.AdView>
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/wU_ga7hzUfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/wU_ga7hzUfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
02-25 02:18:35.974: V/WebViewChromium(5974): Binding Chromium to the main looper Looper (main, tid 1) {41ee0328}
02-25 02:18:35.974: I/chromium(5974): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
02-25 02:18:35.974: I/BrowserProcessMain(5974): Initializing chromium process, renderers=0
02-25 02:18:35.984: W/chromium(5974): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
02-25 02:18:35.994: I/Adreno-EGL(5974): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
02-25 02:18:36.114: D/dalvikvm(5974): DexOpt: --- BEGIN 'ads494133920.jar' (bootstrap=0) ---
02-25 02:18:36.225: D/dalvikvm(5974): DexOpt: --- END 'ads494133920.jar' (success) ---
02-25 02:18:36.225: D/dalvikvm(5974): DEX prep '/data/data/com.example.teste/cache/ads494133920.jar': unzip in 0ms, rewrite 110ms
02-25 02:18:36.245: I/Ads(5974): Use AdRequest.Builder.addTestDevice("00D28C195D9171AAC37C4EA54DAAE4B7") to get test ads on this device.
02-25 02:18:36.245: I/Ads(5974): Starting ad request.
02-25 02:18:36.275: D/dalvikvm(5974): GC_FOR_ALLOC freed 308K, 4% free 9184K/9524K, paused 18ms, total 18ms
02-25 02:18:36.335: E/GooglePlayServicesUtil(5974): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
02-25 02:18:36.355: E/GooglePlayServicesUtil(5974): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
02-25 02:18:36.365: E/GooglePlayServicesUtil(5974): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
02-25 02:18:36.385: D/OpenGLRenderer(5974): Enabling debug mode 0
02-25 02:19:36.349: W/Ads(5974): Timed out waiting for ad response.
02-25 02:19:36.359: I/Ads(5974): Scheduling ad refresh 60000 milliseconds from now.
02-25 02:19:36.359: W/Ads(5974): Failed to load ad: 2
02-25 02:20:36.403: I/Ads(5974): Ad is not visible. Not refreshing ad.
02-25 02:20:36.403: I/Ads(5974): Scheduling ad refresh 60000 milliseconds from now.
02-25 02:21:36.457: I/Ads(5974): Ad is not visible. Not refreshing ad.
02-25 02:21:36.457: I/Ads(5974): Scheduling ad refresh 60000 milliseconds from now.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
package com.example.teste;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.webkit.WebView;
import android.widget.LinearLayout;
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
public class MainActivity extends Activity {
private AdView adView;
public static String ADMOB_ID = "ca-app-pub-9906023002971535/8148896000";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
initAdMob();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
private void initAdMob() {
final LinearLayout adPlaceHolder = (LinearLayout) findViewById(R.id.adPlaceHolder);
adPlaceHolder.setVisibility(View.INVISIBLE);
adPlaceHolder.removeAllViews();
adView = new AdView(this);
adView.setAdUnitId(ADMOB_ID);
adView.setAdSize(AdSize.BANNER);
adPlaceHolder.addView(adView);
// Initiate a generic request to load it with an ad
adView.loadAd(new AdRequest.Builder().build());
adView.setAdListener(new AdListener() {
@Override
public void onAdFailedToLoad(int errorCode) {
adPlaceHolder.setVisibility(View.GONE);
super.onAdFailedToLoad(errorCode);
}
@Override
public void onAdLoaded() {
adPlaceHolder.setVisibility(View.VISIBLE);
super.onAdLoaded();
}
});
}
@Override
protected void onResume() {
super.onResume();
if (adView != null) {
adView.resume();
}
}
@Override
protected void onPause() {
super.onPause();
if (adView != null)
adView.pause();
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.teste"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="com.example.teste.MainActivity"
android:label="@string/app_name" >
<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>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<LinearLayout
android:id="@+id/adPlaceHolder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
</LinearLayout>
</RelativeLayout>
02-25 22:11:23.520: W/Ads(20153): Too many background threads already running. Aborting task.
02-25 22:11:23.520: W/Ads(20153): java.util.concurrent.RejectedExecutionException: Task aba@441b8680 rejected from java.util.concurrent.ThreadPoolExecutor@4352d7e8[Running, pool size = 10, active threads = 10, queued tasks = 0, completed tasks = 7]
02-25 22:11:23.520: W/Ads(20153): at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2011)
02-25 22:11:23.520: W/Ads(20153): at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:793)
02-25 22:11:23.520: W/Ads(20153): at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1339)
02-25 22:11:23.520: W/Ads(20153): at aaz.a(SourceFile:26)
02-25 22:11:23.520: W/Ads(20153): at aae.b_(SourceFile:104)
02-25 22:11:23.520: W/Ads(20153): at bfv.l(SourceFile:294)
02-25 22:11:23.520: W/Ads(20153): at bgb.a(SourceFile:197)
02-25 22:11:23.520: W/Ads(20153): at bga.a(SourceFile:544)
02-25 22:11:23.520: W/Ads(20153): at bfu.d(SourceFile:190)
02-25 22:11:23.520: W/Ads(20153): at bft.handleMessage(SourceFile:126)
02-25 22:11:23.520: W/Ads(20153): at android.os.Handler.dispatchMessage(Handler.java:102)
02-25 22:11:23.520: W/Ads(20153): at android.os.Looper.loop(Looper.java:136)
02-25 22:11:23.520: W/Ads(20153): at android.app.ActivityThread.main(ActivityThread.java:5017)
02-25 22:11:23.520: W/Ads(20153): at java.lang.reflect.Method.invokeNative(Native Method)
02-25 22:11:23.520: W/Ads(20153): at java.lang.reflect.Method.invoke(Method.java:515)
02-25 22:11:23.520: W/Ads(20153): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
02-25 22:11:23.520: W/Ads(20153): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
02-25 22:11:23.520: W/Ads(20153): at dalvik.system.NativeStart.main(Native Method)
02-25 22:11:30.558: I/Ads(20153): Ad is not visible. Not refreshing ad.
02-25 22:11:30.558: I/Ads(20153): Scheduling ad refresh 60000 milliseconds from now.
02-25 22:11:36.464: I/Ads(20153): Ad is not visible. Not refreshing ad.
02-25 22:11:36.464: I/Ads(20153): Scheduling ad refresh 60000 milliseconds from now.
02-25 22:11:48.307: I/Ads(20153): Ad is not visible. Not refreshing ad.
Eric Wong
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/wU_ga7hzUfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
I have the same problem, Admob is not working and the error : The Google Play services resources were not found. Check your project configuration to ensure that the resources are included still display in devices.
03-08 14:58:51.502: I/Ads(3423): Use AdRequest.Builder.addTestDevice("A58DA59557EB5D65293E02CEE19E1F79") to get test ads on this device.03-08 14:58:51.512: I/dalvikvm(3423): Could not find method android.webkit.WebSettings.getDefaultUserAgent, referenced from method abc.a03-08 14:58:51.512: W/dalvikvm(3423): VFY: unable to resolve static method 3901: Landroid/webkit/WebSettings;.getDefaultUserAgent (Landroid/content/Context;)Ljava/lang/String;03-08 14:58:51.512: D/dalvikvm(3423): VFY: replacing opcode 0x71 at 0x001103-08 14:58:51.522: I/Ads(3423): Starting ad request.03-08 14:58:51.522: I/dalvikvm(3423): Could not find method android.webkit.WebSettings.setMediaPlaybackRequiresUserGesture, referenced from method abk.<init>03-08 14:58:51.522: W/dalvikvm(3423): VFY: unable to resolve virtual method 3916: Landroid/webkit/WebSettings;.setMediaPlaybackRequiresUserGesture (Z)V03-08 14:58:51.522: D/dalvikvm(3423): VFY: replacing opcode 0x6e at 0x003d03-08 14:58:51.572: W/ResourceType(3423): getEntry failing because entryIndex 13 is beyond type entryCount 403-08 14:58:51.572: W/ResourceType(3423): Failure getting entry for 0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)03-08 14:58:51.572: E/GooglePlayServicesUtil(3423): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.03-08 14:58:51.642: D/dalvikvm(3423): GC_CONCURRENT freed 266K, 8% free 6799K/7367K, paused 12ms+11ms, total 62ms03-08 14:58:51.652: D/libEGL(3423): loaded /system/lib/egl/libEGL_mali.so03-08 14:58:51.652: D/libEGL(3423): loaded /system/lib/egl/libGLESv1_CM_mali.so03-08 14:58:51.652: D/libEGL(3423): loaded /system/lib/egl/libGLESv2_mali.so03-08 14:58:51.692: D/OpenGLRenderer(3423): Enabling debug mode 003-08 14:58:51.792: D/webviewglue(3423): nativeDestroy view: 0x64d822c803-08 14:58:51.802: D/webcore(3423): >>>>>>>>>>>>>>>>>>>>>>>>>>>viewSizeChanged03-08 14:58:51.862: D/webcore(3423): >>>>>>>>>>>>>>>>>>>>>>>>>>>viewSizeChanged03-08 14:58:51.972: W/ResourceType(3423): getEntry failing because entryIndex 13 is beyond type entryCount 403-08 14:58:51.982: W/ResourceType(3423): Failure getting entry for 0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)03-08 14:58:51.982: E/GooglePlayServicesUtil(3423): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.03-08 14:58:52.122: W/ResourceType(3423): getEntry failing because entryIndex 13 is beyond type entryCount 403-08 14:58:52.122: W/ResourceType(3423): Failure getting entry for 0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)03-08 14:58:52.122: E/GooglePlayServicesUtil(3423): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.03-08 14:58:52.642: I/Ads(3423): No fill from ad server.03-08 14:58:52.642: W/Ads(3423): Failed to load ad: 3
<LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:orientation="vertical" android:background="#000000" > <com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/adView" android:layout_width="match_parent" android:layout_height="wrap_content" ads:adUnitId="ca-app-pub-3948811721068628/XXXXXXXXXX" ads:adSize="BANNER"/>
</LinearLayout>
AdView adView = (AdView) rootView.findViewById(R.id.adView); AdRequest adRequest = new AdRequest.Builder() .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) .addTestDevice("A58DA59557EB5D65293E02CEE19E1F79") .build(); adView.loadAd(adRequest);
Eric Wong
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/wU_ga7hzUfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
...