HTML5的Andr​​oid开发 [英] HTML5 Android Development

查看:146
本文介绍了HTML5的Andr​​oid开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做Android应用程序感兴趣,而我的主要爱好是网络的发展。既然是困惑我的事情是,人们在HTML5 / CSS3 / JavaScript的语言的应用程序,都在Android手机或类似Android上安装的应用程序?

I am interesting in making an android application, while my primary hobbies is web development. Now the thing that is confusing me is that people make applications in HTML5/CSS3/JavaScript languages, are those apps running on web browsers on android mobile or running like an installed application on android?

推荐答案

那么你可以设计和开发的3种方式您的应用程序

Well you can design and develop your app in 3 ways

  • 本机:完整的Java code在Android的情况下,或Objective-C的或斯威夫特现在的iOS
  • 网页:HTML5,CSS3,JavaScript的
  • 混合型:两种
  • 的混合物

如果你是一个网页开发人员,你可以设计自己的应用程序,HTML5中,然后使用如的PhoneGap 或<一包装HREF =htt​​p://cordova.apache.org/相对=nofollow> Apache的科尔多瓦,以简单的包裹或在web视图打包的应用程序(一个web视图就像是里面的本机应用程序一个简单的浏览器)

If you are a web developer you can design your app in HTML5 and then use a wrapper like PhoneGap or Apache Cordova which will simply wrap or package your app in a WebView (a Webview is like a simple browser inside a native app).

你有你自己的APK像谷歌任何其他应用程序中播放,所以是的,它是一个可以安装,更新和删除过程中的全面应用,在任何Android设备

Then you will have your APK like any other app in Google Play, so yes it's a full application that can be installed, updated and deleted of course, in any Android device

但是,二者之间的差,像根据该应用类型的​​速度而变化: previously,Web应用程序无法获得加速度计,摄像头,陀螺仪等,但现在随着一堆可用的API,你必须访问这些非常简单的方法的能力。

But there is a difference between the two, like the speed varies depending on the app type: previously, web apps couldn't gain access to the accelerometer, camera, gyroscope etc, but now with the bunch of APIs available, you do have the ability to access them in very simple ways.

web视图的完整定义

web视图类是Android的View类的扩展,允许   你来显示网页作为你的活动布局的一部分。它确实   不包括一个充分开发的web浏览器的任何功能,如   导航控件或地址栏。所有这一切的WebView做,由   缺省情况下,是示出网页。

The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.

有关的WebView更多信息这里

More info about WebView Here

这篇关于HTML5的Andr​​oid开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆