简体   繁体   English

如何从sencha脚本启动android活动?

[英]How to start android activity from sencha script?

Dear All,I want to merge existing android project with sencha + phonegap. 亲爱的所有人,我想将现有的android项目与sencha + phonegap合并。 But i am still confused to start my existing activity from phonegap / sencha script. 但是我仍然很困惑从phonegap / sencha脚本开始我现有的活动。 any suggestion would be helpful? 有什么建议会有所帮助吗?

Sounds like you might be in need of WebIntents. 听起来您可能需要WebIntents。 Check out this article for some examples on how to call other activities. 查看本文,了解有关如何调用其他活动的一些示例。

You can invoke Java methods from a WebView by addJavascriptInterface , and here is an example of how to use this method. 您可以通过addJavascriptInterface从WebView调用Java方法,这是如何使用此方法的示例 Allowing Javascript to invoke your own Java methods makes it possible to start existing activity from phonegap / sencha script. 允许Javascript调用您自己的Java方法使从phonegap / sencha脚本启动现有活动成为可能。

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

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