Increasing user HH profitable Z1 Android programmers to develop applications needed by users. The more the user of the Android application using the HH-made a developer then it will be very favorable opportunities for the programmer to do business or new business, such as admob advertising in Android applications he created. Just imagine if there is a user that the application is 10 USD and every day they use it, then thats very huge advertising possibilities that were posted to watch and clicked by a user of Android applications.
For current Android programmers admob ads could be said to be one of the sources of income passive income which is obtained through the application of bosa they produce. To make it more obvious how to install Admob Adsense ads on Adroid Apps we can see in the following steps:
1. First you must already be enrolled as publiser at the address admob.com. Do the registration correctly, make sure the ID you enter is the original BIOS, because later there is a part of the form to the name of the payment. This means that the payment of remuneration or service that we have done for our paid to top advertising that we attach.
2. If you have already registered please download sdk libraries that exist on the account of admob. Then you can also get on the android developers.
As well as another one of the ways that you can try to get his library,
namely through the sdk manager (see picture) the reply is not wrong
library named URGoogleAdMobAdsSDK.jar
3. Create New project on application of eclips you then copi library earlier and paste it on your project's libs folder. Be sure to note the name of the application that you create project because it is important.
4. create a new layout. But you can also use an existing one. Then enter in your layout Script:
BN: Save with the name of the layout URactivity_admob.xml. Don't forget to check the rows following Script. Because if there is a wrong caused accidentally. May add quotation marks or other text.
tools: xmlns = "http://schemas.android.com/tools"
Android: id = "+ id/NAE RelativeL"
Android: layout_width = "wrap_content"
Android: layout_height = "match_parent"
Android: orientation = "vertical" <!--positioning layout portrait-->
xmlns: ads = "http://schemas.android.com/apk/lib/com.google.ads" >
LinearLayout <
Android: layout_width = "match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical" > <!--memposisikan layout portrait-->
<TextView
android:id="@+id/textVw"
android:layout_width="match_parent"
android:layout_height="60dp"
Android: text = "ads AdMob Android"/>
</LinearLayout>
<! —-part layout admob-->
AdView < URcom.google.ads.
Android: id = "+ id/admob NAE-ku"
Android: layout_width = "match_parent"
Android: layout_height = "60dp"
ads: adSize = "banners"
ads: adUnitId = "a15-ADMOB-PUBLISHER-ID-25f0" <!--ID of the Admob-->
ads: loadAdOnCreate = "true"/>
</RelativeLayout>
5. Change URAndroidManifest.xml as follows:
NB: Add userpermission INTERNET and ACCESS_NETWORK_STATE. There is another additional android: configChanges. Seemingly a bit less, but if you can not run well our application. The following Script checks resetting do not forget. Make it a habit of work carefully, hehehhee:D.
<? xml version = "1.0" encoding = "utf-8"? >
xmlns: android manifest < = "http://schemas.android.com/apk/res/android"
package = "com. android_admob"
Android: versionCode = "2"
Android: versionName = "1.1" >
uses-sdk <
Android: minSdkVersion = "9"
Android: targetSdkVersion = "17"/>
< application
Android: allowBackup = "true"
Android: icon = "@drawable/ic_launcher"
Android: label = "@string/app_name"
Android: theme = "@style/AppTheme" >
< activity
Android: name = "com. android_admob. MainActivity "
Android: label = "@string/app_name" >
<intent-filter>
< action android: name = "android intent. action. MAIN"/>
< category android: name = "android intent. LAUNCHER category."/>
</intent-filter>
</activity>
< activity
Android: name = "URcom.google.ads. AdActivity"
Android: configChanges = "keyboard | keyboardHidden | orientation | screenLayout | uiMode | screenSize | smallestScreenSize"/>
</application>
< uses permissions-android: name = "android INTERNET permissions." >
</uses-permission>
< uses permissions-android: name = "android. permissions. ACCESS_NETWORK_STATE"/>
</manifest>
6. the last step is to call him on a java file as the activity as follows the scripts I mean:
BN: again and again checks resetting Yes scriptnya to be more sure.
package com. android_admob;
import android os. Bundle;
import URandroid.app. Activity; library activity
http://usahawan-maju.blogspot.com
public class MainActivity extends Activity {
@Override
protected void onCreate (Bundle savedInstanceState) {
Super onCreate (savedInstanceState);
setContentView (r. layout. activity_admob);
}
}
NB: If still failed checks resetting script. If is correct but still error you can try by searching for other ways.
Do not get tired to try. Try everything new that is certainly useful:D
0 Response to "How to install Admob Adsense ads on Android applications"
Post a Comment