Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gold-duo committed Nov 10, 2015
1 parent f254b62 commit 54a69a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

**Usage**

it creates a child process by NDK calling linux fork function. callback your android java code run in the child process inside. Such as [Watchdog](https://github.com/droidwolf/NativeSubprocess/blob/master/src/com/droidwolf/example/WatchDog.java "WatchDog") (sample [ProcessWatcher](https://github.com/droidwolf/NativeSubprocess/blob/master/src/com/droidwolf/example/ProcessWatcher.java "ProcessWatcher")) to monitor your android app service, call up the customer satisfaction survey feedback page (sample [UninstallWatcher](https://github.com/droidwolf/NativeSubprocess/blob/master/src/com/droidwolf/example/UninstallWatcher.java "UninstallWatcher")) when uninstalling your applications.
it creates a child process by NDK calling linux fork function. callback your android java code run in the child process inside. Such as
[Watchdog](https://github.com/droidwolf/NativeSubprocess/blob/master/example/src/main/java/com/droidwolf/example/WatchDog.java "WatchDog")(sample [ProcessWatcher](https://github.com/droidwolf/NativeSubprocess/blob/master/example/src/main/java/com/droidwolf/example/ProcessWatcher.java "ProcessWatcher"))to monitor your android app service, call up the customer satisfaction survey feedback page(sample [UninstallWatcher](https://github.com/droidwolf/NativeSubprocess/blob/master/example/src/main/java/com/droidwolf/example/UninstallWatch "UninstallWatcher")) when uninstalling your applications.

**How to use**

1. copy [subprocess-release.aar](https://raw.githubusercontent.com/droidwolf/NativeSubprocess/master/subprocess/subprocess-release.aar) to lib directory.
1. import [subprocess-release.aar](https://raw.githubusercontent.com/droidwolf/NativeSubprocess/master/subprocess/subprocess-release.aar) .
3. implements Subprocess class and override runOnSubprocess function.
4. Finally, create your child process call by Subprocess.create function.

Expand Down

0 comments on commit 54a69a4

Please sign in to comment.