如何将变量从html传递到android java类

How to pass variable from html to android java class?

本文关键字:android java html 变量      更新时间:2023-09-26

我已经通过这个链接为后台服务创建了插件

如何在phonegap中创建插件以在后台运行应用程序?

但现在我的问题是将变量从index.html传递到backgroundservice.java,然后我需要将该变量传递到Myservice.class.

请引导我。提前谢谢。

请参阅AccountList插件,获取一个使用JavaScript参数(类型)的插件的小示例。