I am using moveTaskToBack() method in my activity.
When I am pressing back button the activity still is visible. The back key does not work. What did I do wrong here
If you call super it triggers the default implementation of back button, which just finishes the current activity. Try removing the line super.onBackPressed(); and then see if the new behavior is what you expect.
super
super.onBackPressed();