可Android应用程序嵌入在像老纯Java小程序的网页? [英] Can Android App be embedded in Web page like old plain java applet?
问题描述
我什么都不知道android平台并不能找到答案,互联网上这一基本问题。
I know nothing about android platform and can't find answer to this basic question on internet.
更新:好吧,我不能嵌入Android应用程序本身。但我可以嵌入在Java中的东西在Android中的网页浏览器?
Update: OK I cannot embed Android App per se. But can I embed something in Java in Android Webbrowser ?
推荐答案
没有,你不能嵌入Android应用到网页,并将它像应用工作。但是,如果您编写和组织code以模块化的方式(查找模型 - 视图 - 控制器设计模式),那么你就应该能够重用你的code的使它更容易创建一个新的小程序LOT基于接口。这不是一个插入式解决方案,但它应该让你的存在方式的80%。
No, you cannot embed an Android app into a webpage and have it work like the app. However, if you write and organize your code in a modular fashion (lookup Model-View-Controller design patterns), then you should be able to reuse A LOT of your code making it easier to create a new Applet-based interface. It's not a drop-in solution, but it should get you 80% of the way there.
这篇关于可Android应用程序嵌入在像老纯Java小程序的网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!