我需要知道给定应用程序的可用活动在Android中是什么。
我知道您可以执行以下操作:App中所有活动的列表,但我想知道是否有更简单的方法,我也不想安装该应用程序以查看可用的活动
假设我想使用startapp插件打开Google PlayStore:https : //github.com/lampaa/org.apache.cordova.startapp以下载特定的应用程序,那么我需要知道使用哪种活动对吗?
navigator.startApp.start([
"com.example.hello", // applucation
"com.example.hello.MainActivity", // activity
"product_id", // key
"100" // value
], function(message) { /* success */
console.log(message); // => OK
},
function(error) { /* error */
console.log('47', error);
});
顺便说一下,我正在使用Cordova和Sencha Touch(如果有的话)。
任何帮助表示赞赏:)
它们实际上在AndroidManifest.xml上列出
还有一些应用程序可以帮助您获取已安装应用程序的文件。
https://play.google.com/store/apps/details?id=jp.susatthi.ManifestViewer&hl=zh-CN
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句