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
PowerShell Tip - Replace Text in Files that Might Have Square Brackets in Their File Names June 18, 2015
Vault 3 is Now Available for Chrome OS Devices! April 07, 2015
EBTCalc is Now Available for Chrome OS Devices! April 07, 2015
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