adview

Error inflating class com.google.ads.AdView (InflateException)

梦想的初衷 提交于 2019-12-08 20:01:31
I am trying to show a adview in my android application, but it shows an InflateException. This terminates the app and I cannot do anything. Here is my logcat - 05-06 14:09:09.428: E/AndroidRuntime(928): FATAL EXCEPTION: main 05-06 14:09:09.428: E/AndroidRuntime(928): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kodspider.parkon/com.kodspider.parkon.HomeActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class com.google.ads.AdView 05-06 14:09:09.428: E/AndroidRuntime(928): at android.app.ActivityThread.performLaunchActivity

Ads are not loading in AdView in Landscape Mode Android

半腔热情 提交于 2019-12-08 10:08:32
问题 I Want to load Google Ads in in AdView in Landscape mode. The ads are loading in Portrait mode but it is not loading in Landscape mode. Please Help Here is my code for xml: <LinearLayout 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" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:orientation="vertical" tools:context=".MainActivity" >

AdView bug causing all webviews stop loading when orientation changes and multi-threads are running?

假装没事ソ 提交于 2019-12-07 11:39:06
问题 I just found a problem with Adview when screen orientation changes and multi-threads are running. I think this might be a bug of Adview. And this problem impacts all the webviews in the application. The webviews stop loading any content, i.e. they either show blank or the content that was shown before. The test environment is Platform: Google Nexus S + Android 4.1.2 (not only this platform, a lot of other platforms, even the emulators are affected) Ads SDK: 6.4.1 (we also tested Ads SDK 4.1.1

Android: Need Mopub Ad to Open in WebView when clicked on

﹥>﹥吖頭↗ 提交于 2019-12-06 11:16:50
问题 I am curious how to load a webview when clicking on a mopub ad. By default the ad is opening a browser. There is very little documentation on this and I haven't been able to find any examples. I instantiate the AdView class that I found in the mopub api as it seems like it should do what I want but to no avail. And I'm still not sure how to switch the ad click from browser to webview. Also, getClickThroughUrl() returns null. Mopub is storing the url though because the page opens in a browser.

Android Admob 4.1.1 has a memory leak (see attached test project). Cause/fix/work around?

♀尐吖头ヾ 提交于 2019-12-06 07:55:23
问题 I have a test project which demonstrates a memory leak caused by Admob 4.1.1. The basic scenario is I have two activities and I switch back and forth between the main and the sub activity several times. I then switch to DDMS and force a few GCs. Then dump the HPROF and look at the historgram filtered by com.test* to see how many instances of the main and sub activity there are. My screenshots of the histogram are attached: A leak! I then commented out the ads in the xml and reran and there

Java nullpointer exception from Webview in android.webkit.WebViewClassic.loadDataWithBaseURL

断了今生、忘了曾经 提交于 2019-12-05 15:19:12
Following the suggestions provided in this question I modified my AdMob code to be compliant with the recommendations, that effectively worked reducing the number of exceptions that were appearing. However a new exception is rising. The code is the following: @Override protected void onDestroy() { if ( adView != null ) { adView.destroy(); adView = null; Log.i(ApplicationData.APP_TAG, TAG + ": OnDestroy, destroying the Adview"); } super.onDestroy(); } The method adView.destroy() appears to work well as the LogCat message is published. Just after this message I am getting the following exception

AdView bug causing all webviews stop loading when orientation changes and multi-threads are running?

妖精的绣舞 提交于 2019-12-05 13:56:15
I just found a problem with Adview when screen orientation changes and multi-threads are running. I think this might be a bug of Adview. And this problem impacts all the webviews in the application. The webviews stop loading any content, i.e. they either show blank or the content that was shown before. The test environment is Platform: Google Nexus S + Android 4.1.2 (not only this platform, a lot of other platforms, even the emulators are affected) Ads SDK: 6.4.1 (we also tested Ads SDK 4.1.1 which has the same problem) The way to reproduce this issue is construct an android project using the

Eclipse Graphical Layout unable to display adView

这一生的挚爱 提交于 2019-12-05 01:45:23
问题 I updated from Eclipse Helios to Eclipse Juno, updated Android SDK tools to v23, and Google Play lib 4.4. Since them i am unable to view XML layouts in eclipse Graphical Layout Window. I get following error. Exception raised during rendering: com/google/android/gms/ads/AdView : Unsupported major.minor version 51.0 Exception details are logged in Window > Show View > Error Log Error Log Could not create the view: org.eclipse.pde.runtime.LogView The error only shows when i add Google AdView XML

How to make AdView “occupy” space even while requesting an ad? (Android)

☆樱花仙子☆ 提交于 2019-12-04 17:51:51
问题 I'm using Google AdMob Ads SDK 4.0.4 for Android By default, The AdView will have no size until the ad is loaded. Which could cause problem if you have buttons above or below the ad. User could accidentally click on the ad if the ad returned at the exact moment they are about to click a button. In old admob SDK I solved this by using setGoneWithoutAd(false). This way, the space will be preserved even when the ad is not returned yet. In the new SDK (Google Admob Ads SDK 4.0.4) I manage to do

Android Admob 4.1.1 has a memory leak (see attached test project). Cause/fix/work around?

筅森魡賤 提交于 2019-12-04 14:38:14
I have a test project which demonstrates a memory leak caused by Admob 4.1.1. The basic scenario is I have two activities and I switch back and forth between the main and the sub activity several times. I then switch to DDMS and force a few GCs. Then dump the HPROF and look at the historgram filtered by com.test* to see how many instances of the main and sub activity there are. My screenshots of the histogram are attached: A leak! I then commented out the ads in the xml and reran and there were no leaks: No leak now I have found some relevant posts to Admob leaks such as here: Android AdMob