Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载了droidPlugin的宿主,在启动一个未安装的插件的service时, 首次启动失败 #55

Closed
newstart201212 opened this issue Oct 15, 2015 · 1 comment

Comments

@newstart201212
Copy link

宿主里启动未安装的插件service(AndroidManifest里声明exported=true), 没反应.
第2次以后才可以启动.

具体过程:

  1. 插件里有个service,
  2. 宿主在PluginManager.getInstance().isConnected()之后查询插件,
    然后PluginManager.getInstance().installPackage(),
    之后要启动插件的service, 此时service没被启动,
    Intent it = new Intent();
    it.setClassName("com.example.test2", "com.example.test2.Test2Service");
    mContext.startService(it);
  3. 再重复上面操作, 可以启动插件service
@newstart201212 newstart201212 changed the title 加载了droidPlugin的宿主,在启动一个未安装的插件的service(声明exported=true)时, 首次启动失败 加载了droidPlugin的宿主,在启动一个未安装的插件的service时, 首次启动失败 Oct 15, 2015
@cmzy
Copy link
Member

cmzy commented Oct 29, 2015

安装失败了吧?安装完成后需要检测一下插件是否安装成功。

@cmzy cmzy closed this as completed Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants