当前位置: 动力学知识库 > 问答 > 编程问答 >

android - How the html5 works as a cross platform?

问题描述:

I am currently looking for a cross platform technolgy for my Android App, I come to conclusion of HTML5,I tried some sample code and some Native applications using PhoneGap.

I'm little confused about Native Application(Using PhoneGap),It Uses .java files for writting plugins for Android, now if I want to develope same App for Windows,should i need to create new plugins for windows phone?.

(I'm working on NFC project in android.The plugins for NFC in android are available at

http://phonegap.com/2011/09/26/building-an-nfc-enabled-android-application-with-phonegap/

)

网友答案:

Yes. You will need to create plugins for different platforms that you use. You can use the base set of API's everywhere but if something does not exist, then you'll have to create a plugin for it in the platform's native language. You can contribute these plugins as open source back tot he community so others can use it as well.

See the plugin development guide here:

http://docs.phonegap.com/en/2.1.0/guide_plugin-development_index.md.html

分享给朋友:
您可能感兴趣的文章:
随机阅读: