-
Recent Posts
Popular Posts List
-
Linkify text li...
0
67
-
Get Resource ID...
0
51
-
Foreach loop cy...
0
50
-
Scroll to certa...
0
49
-
How quickly res...
0
46
-
Convert Drawabl...
0
40
-
Transparent Bac...
0
39
-
Android Studio ...
0
35
-
Spinner ComboBo...
0
34
-
Timer simple Ti...
0
34
-
Open url with b...
0
34
-
Create bitmap a...
0
34
-
Timer task Time...
0
33
-
android.app.App...
0
30
-
Convert Activit...
0
30
-
Turn screen ON ...
0
30
-
Get Assets fold...
0
29
-
Error type 3 Ac...
0
27
-
PHP how to incl...
0
26
-
Formatting a Nu...
0
26
-
Linkify text li...
Views
- Timer simple TimerTask Java Android example - 136,409 views
- Linkify text link url in TextView text Android example - 95,099 views
- Spinner ComboBox DropDown List Android example code - 85,219 views
- How quickly restart adb.exe ADB server Android emulator example - 82,506 views
- Compressing a bitmap to JPG format Android example - 72,982 views
- Turn screen ON OFF Android sample code - 71,967 views
- Get Assets folder path and read txt file to string Android example code - 71,494 views
- Timer task TimerTask run cancel Android example - 65,124 views
- Start Activity from ListView item click Android example - 63,139 views
- How update View TextView with timer Android runnable example - 61,436 views
- If, else if, else statement Java Android example - 49,313 views
- Draw Arc Android basic example - 45,612 views
- Class File Editor – Source not found – Change Attached Source – Eclipse - 45,215 views
- Draw circle Android basic example - 44,606 views
- Scroll to certain position on application Android example code - 44,473 views
- Get Resource ID by Resources String Name Android example - 40,589 views
- Crop cropped cut bitmap image pictures Android example - 38,954 views
- Foreach loop cycle in Java Android example - 38,879 views
- AsyncTask Example Android with ProgressBar - 38,572 views
- Create bitmap and draw text into bitmap Android example - 37,577 views
Categories
- Android Examples Code (314)
- Android Software Download (4)
- Android Studio (43)
- Array,List,Collections (22)
- Bitmap, drawing (44)
- Bugs, warnings, errors (108)
- Dictionaries (22)
- Download (2)
- Eclipse (78)
- Fragments Tutorial (8)
- Javascript css html (12)
- PHP (3)
- Smartphone (31)
- Smartphones (3)
- SQLite database (7)
- Uncategorized (4)
Archives
Meta
Tag Archives: admob
3,046 views
InterstitialAd Admob not visible
// on bottom of onCreate add listener mInterstitialAd .setAdListener(new AdListener(){ public void onAdLoaded(){ interstitial.show(); } }); } // end onCreate public void displayInterstitial (){ if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } }
Posted in Android Studio, Bugs, warnings, errors
Tagged admob
Comments Off on InterstitialAd Admob not visible
Set theme of AdActivity to @android:style/Theme.Translucent
AndroidManifest.xml <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent" />
Posted in Android Examples Code, Bugs, warnings, errors, Eclipse
Tagged admob, emulator, error
Comments Off on Set theme of AdActivity to @android:style/Theme.Translucent
Admob ad not visible on Android Emulator
Try this solution: AdView adView = new AdView(getApplicationContext());//in menu inflater getActivity() adView.setAdUnitId("ca-app-pub-87***yourNumber"); adView.setAdSize(AdSize.BANNER); LinearLayout linLay = (LinearLayout)findViewById(R.id.idReklamaLayout); // Add the adView to it linLay.addView(adView); // Initiate a generic request to load it with an ad if(Build.MANUFACTURER.equals("unknown")) { // Emulator AdRequest.Builder.addTestDevice("B3EEABB8EE11C2BE770B684D95219ECB"); … Continue reading
Posted in Android Examples Code, Bugs, warnings, errors, Eclipse
Tagged admob, emulator, error
Comments Off on Admob ad not visible on Android Emulator
Ad baner without GoogleAdMobAdsSdkAndroid-6.4.1 Android example
First: AdView is in XML file <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="MY_AD_UNIT_ID" ads:adSize="BANNER"/> // onResume AdView adView = (AdView)this.findViewById(R.id.adView); AdRequest adRequest = new AdRequest.Builder() .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) .addTestDevice("TEST_DEVICE_ID") .build(); adView.loadAd(adRequest); Second: Using AdView in Fragment with LinearLayout Resolve error in ADT … Continue reading
Posted in Android Examples Code
Tagged admob, ads, eclipse error, error
Comments Off on Ad baner without GoogleAdMobAdsSdkAndroid-6.4.1 Android example
setTesting(boolean) from the type AdRequest is deprecated
Admob testing on emulator issue. Android Eclipse code warning: setTesting(boolean) from the type AdRequest is deprecated Solution: adRequest.addTestDevice(AdRequest.TEST_EMULATOR); AdView adView = new AdView(this, AdSize.BANNER, "a14d9……….");//MY_AD_UNIT_ID AdRequest adRequest = new AdRequest(); adRequest.setTesting(true); // deprecated adRequest.addTestDevice(AdRequest.TEST_EMULATOR); // OK adView.loadAd(adRequest);
Posted in Android Examples Code
Tagged admob, eclipse, emulator
Comments Off on setTesting(boolean) from the type AdRequest is deprecated
Admob ads not visible on emulator Android 4.1
If you using GoogleAdMobAdsSdk-4.0.4.jar in your project and set android:targetSdkVersion=”17″ in AndroidManifest.xml , ads will not visible on emulator with Android 4.0.3 or 4.1. You have to set as android:targetSdkVersion=”17″ <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="17" /> Update project.properties file – row with … Continue reading
Posted in Android Examples Code, Bugs, warnings, errors, Eclipse
Tagged admob, eclipse error, emulator
Comments Off on Admob ads not visible on emulator Android 4.1
AdMob in Android 4 version
AdMob in Android emulator not visible? You have to using some from this libraries: GoogleAdMobAdsSdk-4.3.1.jar GoogleAdMobAdsSdk-6.0.1.jar GoogleAdMobAdsSdk-6.2.1.jar AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cz.okhelp.admob" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="13" android:targetSdkVersion="16"/> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> … Continue reading
configChanges value of the com.google.ads.AdActivity must include
Errors: E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include screenLayout. E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include uiMode. E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include screenSize. E/Ads(333): The android:configChanges value of the com.google.ads.AdActivity must include … Continue reading
Posted in Android Examples Code, Bugs, warnings, errors, Eclipse
Tagged admob, eclipse error
Comments Off on configChanges value of the com.google.ads.AdActivity must include
NoClassDefFoundError: com.google.ads.AdView ADT 17
Eclipse update ADT 17 Android Emulator error: E/AndroidRuntime(370): java.lang.NoClassDefFoundError: com.google.ads.AdView Solution: -right click on the project in project tree and select Project properties -select Java Build Path -select TAB Order and Export -check GoogleAdMobAdsSdk-4.0.4.jar (or your version SDK) -press OK … Continue reading
Posted in Bugs, warnings, errors, Eclipse
Tagged admob, eclipse error
Comments Off on NoClassDefFoundError: com.google.ads.AdView ADT 17
Admob in Android emulator problem
If admob doesn’t show in application tested on emulator try this solution: Check AndroidManifest.xml 1.) user-permission <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 2.) activity <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation"/> 3.) metadata <meta-data android:value="my_ad_id_unit" android:name="ADMOB_PUBLISHER_ID" /> This is AndroidManifest.xml example. You have to … Continue reading
Posted in Android Examples Code, Bugs, warnings, errors
Tagged admob, androidmanifest, emulator
Comments Off on Admob in Android emulator problem