Skip to content

OddCommon/Kill_Process

 
 

Repository files navigation

Killing Specific Process Introduction

AAR file, demo APK are in /resource.
Note: Regarding java package creation and usage, please refer to the Guideline

Introduction

This demo shows how to kill a specific process.

Class Name

com.picovr.killapplication.KillAppClass

Permission

Add uses-permission property:

<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />

Interface

void killApp(String pkgName, Context context)

Sample Code

AndroidJavaObject killApp = new AndroidJavaObject("com.picovr.killapplication.KillAppClass");
AndroidJavaObject context = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity");

killApp.Call("killApp", "com.picovr.store", context);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 62.9%
  • Java 37.1%