Code Monkey home page Code Monkey logo

Comments (6)

cmzy avatar cmzy commented on May 19, 2024

把这一行去掉呢? PluginHelper.getInstance().applicationAttachBaseContext(base);

from droidplugin.

newstart201212 avatar newstart201212 commented on May 19, 2024

试过了, 还是一样的.你能发个好用的例子不?

from droidplugin.

cmzy avatar cmzy commented on May 19, 2024

PluginApplication就是一个例子啊。我看你写的没问题啊。

manifest里改成:
android:icon="@drawable/ic_launcher" android:theme="@style/AppTheme">是哪一个的manifest?droid plugin里面的?

from droidplugin.

newstart201212 avatar newstart201212 commented on May 19, 2024

manifest是我应用程序的, 不是droidPlugin的, 只是想说这里没有引用插件的com.morgoo.droidplugin.PluginApplication.
关于例子, 能不能给个类似于你下载包里的TestPlugin(把DroidPlugin当做lib使用的), 然后manifest里声明自己的application, 同时还能PluginManager功能的, eg.PluginManager.getInstance().deletePackage()

from droidplugin.

newstart201212 avatar newstart201212 commented on May 19, 2024

@cmzy,
问题解决了, 我重新看了一个DroidPlugin的applicaiton,
@OverRide
protected void attachBaseContext(Context base) {
PluginHelper.getInstance().applicationAttachBaseContext(base);
super.attachBaseContext(base); //这句忘记了, 当然不会加载...., ps. 你的中文文档里也没没写这个, 有时间更新一下吧
}
谢了.

from droidplugin.

cmzy avatar cmzy commented on May 19, 2024

fixed

from droidplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.