Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,274 Members 38,643 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to add admob ads on html based android app

Tip us?
 
nissan0808
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 8
Join Date: Mar 2014
Unhappy [Q] How to add admob ads on html based android app

I have created an app using just html/css.
The app is build by html.I followed this guy's tutorial.As i can't publish the link I am publishing his tutorial ..


Are you a web designer or you can HTML,CSS and Java Script? If your answer is Yes, You can make android app with HTML, CSS and Java scripts knowledge! In this post I’ll show you how can you make an Android app with Just HTML css with phone gap.



What you have need

adt-bundle ( 32 bit windows version download) You can download for your OS platform here
PhoneGap ( Download )
An Android phone.

Procedure:

Open adt-bundle folder and open eclips
Create an android project by eclips
Extract PhoneGap and copy the cordova-2.9.0.js file.
In left side click on Package Explorer and paste the cordova-2.9.0.js file in assets>www folder
Copy cordova-2.9.0.jar file and paste it in Libs folder like as image below

phone gap app develop

Now open the MainActivity.java file from src folder. In this file replace the public class MainActivity extends Activity line with public class MainActivity extends DroidGap
write super.loadUrl(Config.getStartUrl()); in the place of setContentView()

eclips ide

Now add this code in AndroidMainfest.xml file at <uses-sdk…/> and <application…/> tags

<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOC ATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCAT ION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_E XTRA_COMMANDS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETT INGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_ST ORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_ST ATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
android mainfest file
refresh the project. Now create a index.html file in assets>www folder. The app will show you whatever you write in index.html file. You can add more html file link with index.html file like as a website.


After following his guide I succeded to create an android app using basic html/css.
But now I got a problem.I can't add admob ads on the app.I tried a lot but eclips shows atleast 1 problem rather I can't add admob ads on my apps.
plz help me?/
 
R_a_z_v_a_n
Old
#2  
R_a_z_v_a_n's Avatar
Recognized Contributor
Thanks Meter 1,741
Posts: 2,009
Join Date: Sep 2009
Location: XDA Assist Team
Quote:
Originally Posted by nissan0808 View Post
I have created an app using just html/css.

plz help me?/
Hi there,

As the rules said this is not a support forum, but rather a place to get some help by being pointed to the right thread.
Quote:
The mission of XDA Assist is to provide basic help to those who have tried searching but can't find what they are looking for and need assistance. This is not a "helpdesk" providing technical assistance but more to point you in the correct direction with your problem. Perhaps you can't find posts on how to root your phone, install custom recovery or maybe you have questions about how to navigate and use features on the site.
In other way, you can ask for help in this area General discussion > Questions and Answers or for more detailed help try to read carefully this forum Development Tools
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes