following are the ways to exits from the application 

```
 1. ActivityObject.finish();
 2. Runtime.getRuntime().exit(0);

```

I want to know which way is to be used & when ?

if there is another way please let me know 

Thanks in advance.
Shrenik