How to kill an Android activity?

 How to kill an Android activity when leaving it so that it cannot be accessed from the back button?

All you need to do is call finish() method in Activity class like following code snippets.

Intent intent = new Intent(this, NextActivity.class);


Popular posts from this blog

Fatal: LoadModule: error loading module 'mod_sql_mysql.c'

How to hide Android Soft Keyboard