在网络浏览器上运行 Android 应用程序

在网络浏览器上运行 Android 应用程序

问题描述:

我在一家专门从事原生移动应用开发的公司工作.该公司同时开发 Android 和 iOS 应用程序.现在,为了向不同公司的高管展示我们的应用程序,我们使用 pieceable.com 将我们的 iOS 应用程序嵌入到浏览器中.这样我们就可以向这些潜在客户发送一个 url,他们就可以使用该应用程序了.

I work for company which specializes in Native mobile app development. The company does both Android and iOS apps. Now to show our apps to executives for different companies we use pieceable.com to embed our iOS apps in browser. This way we can just send these potential customer an url and they can play around with the app.

在互联网上搜索了很长时间后,我找不到任何可以为 Android 应用程序执行此类功能的内容.有什么办法可以做到.有什么我可以使用的工具吗?

After searching internet for a long time I couldn't find anything to do that kind of functionality for an Android app. Is there a way I can do it. Are there any tools which I can use?

您可以在 Android 模拟器的实例中运行该应用程序,这是一个虚拟机,它是免费的 Android SDK.

You could run the App in an instance of the Android emulator, a VM which is part of the free Android SDK.

在常规 VNC 服务器会话中运行模拟器,而不是在模拟器上运行的 VNC 服务器应用程序,最有可能提供更好的性能.

Running the emulator in a regular VNC server session, rather than a VNC server App running on the emulator, would most likely provide better performance.

可以根据需要从带有嵌入式 VNC 查看器 Java 小程序的网页启动 VNC 会话和 Android 模拟器会话.例如,在 Ubuntu 上,这是 Java 查看器客户端,可在 vnc-java 包中免费获得.

The VNC session and the Android emulator session could be started as needed from a web page with an embedded VNC viewer Java applet. On Ubuntu, for example, this is Java viewer client is freely available in the vnc-java package.

为了避免用户之间无意*享数据,有必要使用 Android VM 的 AVD 和虚拟 SD 卡实例的干净副本运行每个 VM 会话.

To avoid inadvertent data sharing between users, it would be necessary to run each VM session with a clean copy of the Android VM's AVD and virtual SD-card instance.

为了减少模拟器会话的 VM 复制和启动时间,可能需要让 Web 服务器维护一些已启动并准备使用的活动会话.这将为您的潜在客户提供干净的个人会话.

To reduce the VM copy and start-up time for the emulator sessions, it may be desirable to have the web server maintain a few active sessions started and ready for use. This would provide clean individual sessions for your potential customers to try.