Support
Quality
Security
License
Reuse
kandi has reviewed dynamic-load-apk and discovered the below as its top functions. This is intended to give you an instant insight into dynamic-load-apk implemented functionality, and help decide if they suit your requirements.
支持多进程模式,插件可以运行在单独的DL进程中(代码在lab分支)
支持插件中的so库(代码在dev分支)
只需引入DL的一个jar包即可高效开发插件,DL的工作过程对开发者完全透明
支持android2.x版本
慎用this(接口除外):因为this指向的是当前对象,即apk中的activity,但是由于activity已经不是常规意义上的activity,所以this是没有意义的,但是如果this表示的是一个接口而不是context,比如activity实现了而一个接口,那么this继续有效。
使用that:既然this不能用,那就用that,that是apk中activity的基类BaseActivity中的一个成员,它在apk安装运行的时候指向this,而在未安装的时候指向宿主程序中的代理activity,anyway,that is better than this。
activity的成员方法调用问题:原则来说,需要通过that来调用成员方法,但是由于大部分常用的api已经被重写,所以仅仅是针对部分api才需要通过that去调用用。同时,apk安装以后仍然可以正常运行。
启动新activity的约束:启动外部activity不受限制,启动apk内部的activity有限制,首先由于apk中的activity没注册,所以不支持隐式调用,其次必须通过BaseActivity中定义的新方法startActivityByProxy和startActivityForResultByProxy,还有就是不支持LaunchMode。
目前暂不支持Service、BroadcastReceiver等需要注册才能使用的组件,但广播可以采用代码动态注册。
default
(1)无调用(但仍然可以用反射调用)。
QUESTION
What is meant by required-api: param name=”#target” in config.xml file of AGL widgets?
Asked 2020-Mar-06 at 09:53I am trying to understand various available AGL specific options that we can give in config.xml and I am referring to the link below
https://docs.automotivelinux.org/docs/en/halibut/apis_services/reference/af-main/2.2-config.xml.html
This is the sample config.xml file
<feature name="urn:AGL:widget:required-api">
<param name="#target" value="main" />
<param name="gps" value="auto" />
<param name="afm-main" value="link" />
</feature>
what is the need for <param name="#target" value="main" />
and what it meant?
ANSWER
Answered 2020-Mar-06 at 09:48I figured out why we need this
required-api: param name="#target"
OPTIONAL(not compulsory)
It declares the name of the unit(in question it is main) requiring the listed apis. Only one instance of the param “#target” is allowed. When there is not instance of this param, it behave as if the target main was specified.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
No vulnerabilities reported
Save this library and start creating your kit
Explore Related Topics
Save this library and start creating your kit