Development to master merge.

What is the difference between finish() and onBackPressed() and which of them is better to use to simulate back button behavior.