How to add Admob in html css3 jquery base android application - android

I made an app in html5, css3 and with jquery then i convert it in apk via intel sdk now i want to add admob on it. Anyone know best way that how i can add admob in html site.

I strongly doubt this is possible.

Related

Viewing a PDF file from HTML5 Hybrid Mobile App

Intending to view a PDF File from the Hybrid Mobile App , created using HTML5 Jquery and Packaged with Phonegap.
But unable to achieve it ,
Things i tried
<object src="xyz.pdf" type="application/pdf"></object>
also,
window.open('xyz.pdf'); //through javascript
and
$(document).load('xyz.pdf');
Can anyone suggest the best way for viewing the PDF in a Hybrid Android Mobile App.
with cordova you must think about these:
HTML 5 object tag: not working
If you try with:
window.open('http://www.???.com/my.pdf', '_blank', 'location=yes');
The InAppViewer canĀ“t open this kind of files.
I think that there aren't an hybrid solution for this problem.
You must start to search or write about a plugin that use a native pdf's opening and then use it.
An example:
cordova-plugin-file-opener
The latest solution, a little more simple but include to open google docs is:
window.open('https://docs.google.com/viewer? url=http://www.example.com/test.pdf&embedded=true', '_blank', 'location=yes');
ref = window.open('index.html', '_self');
Go look at the Mozilla pdfJS project.
This project allows you to open a pdf (embedded in app or remote) in your app. No break-out links that relies on native viewers.
They also give you a very full featured sample viewer, that you can use as is, but much of functionality in that does not apply to mobile applications.
I have had success with this on Android 4.3 Devices.
Try installing the InAppBrowser plugin to do so. I have use it to open PDF files right inside the app on both iOS and Android.
Check the official InAppBrowser doc with full doc and examples, it has several options you can enable/disable (be sure to point to your current cordova version documentation):
My solution for connected apps with offline availability...
window.open('http://www.someserver.com/doc.pdf', '_system')
...this will open in default pdf viewer. I have my clients use adobe reader for obvious reasons. And also because once it is downloaded the first time, adobe app manages and edits the documents well, and the documents are also available offline from within adobe reader thereafter. Even pdf forms.
Have cordova.js linked on the page.
Have inAppBrowser added.
For full offline you may try FileOpener plugin. I have not needed to do that on android, but I have used that way in iOS.
Hope any of this may help.
Though am late here, still want to share what I know. You can use this plugin to view PDFs in the app (without inappbrowser). Supports only Android and iOS.

Compiling HTML5 app using Phonegap issue

I've compiled my HTML5 app using phonegap and using Boostrap 3 to help speed development.
I've installed the app on my mobile but some of my images aren't showing.
I'm using svg's but I don't think that is the problem because one of them is loading and the other two aren't. The images test fine and show fine in my web browsers but just not as an app.
Any ideas help, does this have something to do with the config.xml file and outlining the app to have access to resources from a web server?
I'm also looking for advice to how intergrating facebook login works?
please verify in your config.xml
<access origin="*"/>
i think issue may come ios only.
then using cordova only not possible to achieve facebook login. so you need to integrate with facebook connect plugin.
http://css-tricks.com/using-svg/
Have a look at the above link. svg has problems with android 2.3 and down.

Needed advice on how to deploy a HTML5 mobile app in the android and iphone market

I have made an HTML5 mobile app which I want to release both in the android and the iphone app market. So whats the easiest way I can do that. I had originally thought of making a small webview, which will be native code, both for the android and the iphone, which will serve as an entry point to the HTML5 app, but I am not sure if this will pass verification, is this correct? and if so do you have any other suggestions how I can solve the problem.
Thanks in advance.
I use PhoneGap to embed javascript and html in a native app

Convert HTML5 into standalone Android App

I have a dynamic HTML5 document that does not contain any external resources (no images, css and scripts are coded inside of document). This HTML5 application is working fine with internet browser. I was wondering, if it would be possible to convert this HTML5 application into standalone Android application, so it can be executed directly without browser. Please advise.
Create an Android app using Eclipse.
Create a layout that has a <WebView> control.
Move your HTML code to /assets folder.
Load webview with your file:///android_asset/ file.
And you have an android app!
Edit:
PhoneGap has now been discontinued.
Original answer:
You could use PhoneGap.
http://phonegap.com/
http://docs.phonegap.com/en/2.1.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
This has the benefit of being a cross-platform solution. Be warned though that you may need to pay subscription fees. The simplest solution is to just embed a WebView as detailed in #Enigma's answer.
You can use https://appery.io/
It is the same phonegap but in very convinient wrapper

How to achieve pagination in Android using jQuery mobile

I have seen some demos about the jQuery wizard plugin on websites. But all of these are based on the web, and run in the browser.
I want to use this function in my Android application, does anyone has experience with that?
Check out PhoneGap to convert a web app to an Android native app. See also some of our demos, videos and tutorials. Many of them demonstrate native Android apps built with jQuery Mobile.

Categories

Resources