Eric Bergman-Terrell's Blog

Previous Blog Post Android Programming Tip: Kill the Application Next Blog Post
May 18, 2011

Ordinarily one should let the OS decide when an Android app gets killed. But you can call ExitApplication.exit() to explicitly kill the running application:

public class ExitApplication {
public static void exit() {
int processID = android.os.Process.myPid();

Use Vault 3 for Android to keep track of your important notes when you're on the go. Thanks!

Keywords: Android, Kill Process, Process ID, Process

Reader Comments

Comment on this Blog Post

Recent Posts

Title Date
Attention Mac OS X Users: Important Vault 3 Update Available (0.61) March 01, 2015
Fix: Brother Network Laser Printer (HL-2270DW) Keeps Going Offline September 23, 2014
Prevent the Windows 8.X Charm Bar from Displaying Inappropriately August 24, 2014
PowerShell Tip: Using PowerShell to change the Power Plan June 26, 2014
Vault 0.53 Released March 29, 2013
Vault 3 (Desktop Version) Updated March 23, 2013
EBTCalc for Android v. 1.12 - Now Runs on Phones and Smaller Tablets February 09, 2013