I am started developing with android,and need to use HTML5 as a cross platform technology,but i dont know about HTML5 and its behaviour with android,I searched a lot but couldn't understand that from where should i start to learn . Any suggessions appreciated.
thank you!
Hi you can check out http://www.sencha.com/blog/introducing-sencha-touch-html5-framework-for-mobile sancha touch for this.
On top of that http://www.sencha.com/blog/galaxy-nexus-the-html5-developer-scorecard/ is scorecard for the same.
you can also opt for Jquery Mobile to build HTML5 standard UI for Android.
Write Html5 code and put this in assets folder and use webView and load this open your html5 file in webView.This is quiet simple for more watch.
Related
I want to know if it's possible to design my android app UI with HTML5 and CSS3.
If it's possible, is there any performance issue?
Android has WebView which can render HTML content, but it doesn't provide the same user experience as native apps so its use is generally discouraged.
Yes it possible. As rhoadster91 stated, you can use a normal Android WebView which loads your "index.html". All your HTML files should be in the "assets/www" directory. But you'll find plenty tutorials out there which explain everything step by step. Have a look at Googles developer site.
A second possibility would be Phonegap. It is a little tool which helps you to deploy your app for various devices (Android, iOS, WP,...) while coding your app only once in HTML.
I experimented with jquery mobile, native application and phonegap. Building a web application at first seemed very attractive at first as the coding is a lot easier compared to native applications. Here is my opinion based on my research:
Using phonegap slows your application responses, it loads slowly and together with jquery mobile the response and load time increases. So I didnot use it.
Using jquery alone was no different in Gingerbread mobile and on emulator you can clearly see the lag in switching between one div to another div. I didnot use it either.
What I did was use android Webview. I wrote my own javascript and css and placed them on the head section of my page. Used div for changing pages on button click. This approach worked really good giving nearly native performance.
I want to create my custom android launcher but not with java code. I want to create it with HTML5 code. I've seen some launchers with HTML5 but not the documentation. Does anyone can give me some links or some tutorials/documentation to start? Thanks.
Does anyone can give me some links or some tutorials/documentation to start?
You could define much of the UI as HTML/CSS/JavaScript. Via PhoneGap, you could deploy this as an app. However, you will still need Java code -- or perhaps a PhoneGap plugin, if someone has written one -- to be able to access information about the installed apps, in order to populate your launcher.
I have developed a Phonegap application, and am now trying to run it in the android emulator. My problem is that the application doesn't scroll in the emulator or device, but it works well in a normal browser like mozilla or chrome. Butwhen I test in the emulator or device then it doesn't scroll.
Here is my html file http://pastie.org/3981916
And here is my css file http://pastie.org/3981918
I am not able to find a solution to this problem, can any one help me out please?
well you cant get the normal html scroll behavior when trying to create a app using phonegap on android.
you cant get the overflow:scroll effect for any of the html elements.
you'll need to make use of third party libraries such as jquerymobile, iscroll4, etcfor getting the native look and feel.
or also you can construct your own logic
Currently I'm using pdfrenderer library to render pdf page and convert that page into image and showing in a view.
In this case we can't copy text from pdf page. I want to create a single project which should support both blackberry(Lastest blackberry os run android apps as well) and android.
Most of the libraries which is available are not compatible with blackberry os.
To support both, i want to load pdf file in webview using html5. Is there any way to achive this.
Please help.Thanks in advance.
I think pdf.js can help you.
I've recently search a lot about javascript pdf reader and found this as the best available solution. But I should mention that it still needs a lot to do to be a good solution
I am writing android application and I don't use webview. I want to know can I insert flash object in my application,and if yes ,how can I do that.If you can write samples please.
Thanks
You will have to use AIR for Android SDK