最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Can I make an HTML5 game for Android? - Stack Overflow

programmeradmin1浏览0评论

Ok to be more specific... can I program an android app in Java that has something like a web view to which I can point to local files on the phone?

I'm thinking about making an android game and i'm wondering if it can be done with a little HTML5 and Javascript that is locally stored on the phone. I heard something about a web view in Java and that is why I am wondering if it could work.

Is this even possible?

Ok to be more specific... can I program an android app in Java that has something like a web view to which I can point to local files on the phone?

I'm thinking about making an android game and i'm wondering if it can be done with a little HTML5 and Javascript that is locally stored on the phone. I heard something about a web view in Java and that is why I am wondering if it could work.

Is this even possible?

Share Improve this question asked Nov 9, 2011 at 1:44 JacobJacob 3,9658 gold badges26 silver badges25 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 9

As the other answers might be correct, there is a much simpler way:

If you know html5 programming, you can do a simple Android app that has one Activity containing one WebView. In that webview you load your index.html and there you go. You can basically do anything you would do on a normal web app.

PhoneGap and Appcelerator are for cross platform development and they provide access to the hardware (vibration, sensors etc) and they give you the possibility to build the native UI with html and javascript. For a pure WebApp they are not the correct frameworks/tools I think. I might be mistaken, but a WebGL Benchmark I wrote for PCs worked out of the box in the android browser and I justed used html5 and JavaScript.

Your answer is yes, your solution is phoneGap

http://phonegap.com/

yes definitely, check out appcelerator.com, phonegap.com etc u can probably go to google "cross platform mobile development" there's a few neat html javascript frameworks

发布评论

评论列表(0)

  1. 暂无评论