You can only kill a process that has the same userID as the one that is doing the killing. If you are trying to kill your own process it should work. Otherwise you can’t do it (unless you have a rooted device and your application has root priviledges).
More Related Contents:
- How to change the activity background from fragment inside it [closed]
- Reading a simple text file
- Google map signed api key errors in Android
- Move to another EditText when Soft Keyboard Next is clicked on Android
- How to use SearchView in Toolbar Android
- Firebase: Query to exclude data based on a condition
- How can I use getSystemService in a non-activity class (LocationManager)?
- Toolbar navigation icon never set
- Coupling FirebaseRecyclerViewAdapter to a Boolean/String Map.Entry
- Passing String array between two class in android application
- What is the difference between background, backgroundTint, backgroundTintMode attributes in android layout xml?
- ListView in ArrayAdapter order get’s mixed up when scrolling
- Take Screenshot of SurfaceView
- Android: How to create an “Ongoing” notification?
- Android vector drawable app:srcCompat not showing images
- Calling android dialog without it fading the background
- Android API for Google Drive?
- @Android display /res/viewable in WebView
- Android Calendar Events
- Communication between BroadcastReceiver and Activity – android
- NoClassDefFoundError below SDK 21
- No resource identifier found for attribute ‘…’ in package ‘com.app….’
- How to list additional external storage folders (mount points)?
- Android count down timer in background
- How to send Authorization header in Android using Volley library?
- Sending JSON in POST request with Retrofit2
- Get signal strength of WIFI and Mobile Data
- android unlock screen intent?
- SpeechRecognizer on Android device without Google Apps
- Android Gyroscope examples?