Code Monkey home page Code Monkey logo

direct-load-apk's Introduction

开源实验室

Direct-Load-apk(DLA)简介

一句话

作为Android开发者,你尝试过运行一个没有安装过的APK吗?你尝试过没有任何约束的去启动一个APK吗?你尝试过不安装QQ微信就直接运行它们吗?很显然,这目前不可能实现。
好吧,说正事,DLA可以做到随时去运行一个apk,而不需要有什么约束,你甚至可以指定类名来启动插件中的任意Activity。

相关连接

使用方法

1、你要确保你的插件的Manifest文件中只有Activity声明。
2、在你的宿主APP中添加 com.lody.plugin.LActivityProxy 的Activity声明。
3、在你想调用插件的代码处(仅限主线程)调用如下语句

/**
 * @param path 插件在手机中的绝对路径
 */
LPluginOpener.startPlugin(context,path);

还有什么?没了!你完全可以把插件交给一个人开发,宿主APP交给一个人开发。

未来的支持

如你所见,现在DLA已经能够加载插件中的Activity,而其它三大组件的支持,只是时间问题。
还有一个支持点是主题皮肤加载,这个也是我们接下来要努力做到的功能。
如果你还有其他的希望加入的需求,欢迎来这里向我们反馈。

开源协议ApacheLicense

Copyright 2015, Lody.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

作者

lody,来自浙江宁波的Android开发者。乐于交友,善于分享。

direct-load-apk's People

Contributors

1liufeilong avatar finallody avatar hischool avatar honghe avatar kymjs avatar

Watchers

 avatar  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.