简体   繁体   English

从PhoneGap javaScript启动android Activity

[英]Start an android Activity from PhoneGap javaScript

I am trying to start an android activity from my phonegap javascript file. 我正在尝试从我的phonegap javascript文件启动android活动。 I have seen a few post from years ago when DroidGap was still utilized. 我看过几年前仍使用DroidGap的几篇文章。 Does anyone know how to do this with the current updated version of phoneGap? 有谁知道如何使用最新版的phoneGap来做到这一点? Please do not point me to any posts that refer to the old version of PhoneGap. 请不要让我指向任何涉及旧版本PhoneGap的帖子。

What you probably want is a native plugin. 您可能想要的是一个本机插件。 You can call your native code from within your JavaScript and then stat your activity as usual. 您可以从JavaScript中调用您的本机代码,然后照常指定活动状态。 Documentation for plugins (for android) is located here . 插件文档(适用于android) 位于

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM