File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
## Android PluginManager ##
2
2
** dynamic load uninstalled apk**
3
- ### Introduction # ##
3
+ ## Introduction ##
4
4
PluginManager is used to manage android applications like [ eclipse] ( http://eclipse.org/ ) plugins.
5
5
you can start an activity from an uninstalled apk placed in sdcard,just like it has installed or registed in the application's ` AndroidManifest.xml ` .
6
- ### Support Features ###
6
+ ### Support Features
7
7
- a ** normal** apk is regard as ** plug-in**
8
8
- start ** activity** from plug-in
9
9
- start other activiy from plug activity
10
10
- plug activity with ** theme**
11
11
- plug with custom ` Application `
12
- - plug with ** .so**
12
+ - plug with ** .so**
13
13
- support android2.x
14
14
15
15
it's easy to use:
16
- ### Steps:###
16
+ ### Steps:
17
17
18
18
- declare permission in your ` AndroidManifest.xml ` :
19
19
@@ -32,11 +32,12 @@ you can start an activity from an uninstalled apk placed in sdcard,just like it
32
32
PlugInfo plug = pluginMgr. loadPlugin(myPlug). iterator(). next();
33
33
```
34
34
- start activity:
35
- ``` java
35
+ `
36
36
pluginMgr.startMainActivity(context, plug.getPackageName());
37
- ```
38
- ### License###
37
+ `
39
38
39
+ ## License
40
+ ``` java
40
41
/*
41
42
* Copyright (C) 2015 HouKx <hkx.aidream@gmail.com>
42
43
*
@@ -52,7 +53,8 @@ you can start an activity from an uninstalled apk placed in sdcard,just like it
52
53
* See the License for the specific language governing permissions and
53
54
* limitations under the License.
54
55
*/
55
- ## About ###
56
+ ```
57
+ ## About
56
58
[ author's blog] ( http://blog.csdn.net/hkxxx/article/details/42194387 )
57
59
58
60
author's email:[ address1] ( mailto:1084940623@qq.com )
You can’t perform that action at this time.
0 commit comments