Remove All Ads from XDA

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

9 posts
Thanks Meter: 0
By nissan0808, Junior Member on 16th June 2014, 07:02 AM
Thread Deleted Email Thread
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.


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 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

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?/
16th June 2014, 07:39 AM |#2  
Razvan's Avatar
Forum Moderator
Thanks Meter: 4,431
Originally Posted by nissan0808

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.

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
Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes