GithubHelp home page GithubHelp logo

dynamicutil's Introduction

1.工具(动态加载so文件):com.dynamicutils.util.JniPlugUtil.java

使用方法,先将需要加载so文件copy到data/data/packagename/下,然后调用JniPlugUtil.installSoDir就可以了

2.插件化开发框架

插件化开发工具,主要分为宿主程序和插件程序。宿主程序为工程主程序,插件程序为开发的插件apk(目前只支持activity,暂不支持server) 开发方法: 1)宿主程序,需要在manifest中注册DynamicChildActivity,然后在程序中调用DynamicUtil.startDynamicActivity()启动插件程序 需要注意的是DynamicChildActivity继承自AppCompatActivity,则需要使用Theme.AppCompat下的样式,需使用v7兼容包 2)插件程序 所有插件的activity都需要继承DynamicParantActivity 需要注意的是 1.context不能使用this,需要使用getContext 2.资源文件名不能和宿主文件名冲突 3.layout.xml布局文件中不能使用自定义控件,包括系统自定义控件,若要使用,请在java中new 其他一切OK

dynamicutil's People

Contributors

hlder avatar

Stargazers

 avatar  avatar Scien avatar

Watchers

 avatar

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.