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
Vault 3 on Mac OSX: Launch Vault 3 from an Icon March 26, 2015
Vault 3 for Android v. 1.56 - Important Update March 20, 2015
Java Programming Tip: Copy a File in Windows and Retain Timestamps and Attributes March 05, 2015
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