Android Overriding onBackPressed(). Is it possible to override onBackPressed() for only one activity? On back button click I want to call a dialog on a specific Activity, but in all other activities i want it to work as it worked before (going to previous activities)...
Before you get totally into this post, I would like to warn you regarding the use of these functionalities, because they aren't user-friendly and Android Play Store wouldn’t approve of these unless you have a very strong reason.
Active Apps/ Reorder Apps button
Add the following permission to AndroidManifest.xml
The following to the Activity
Home Button
Back Button
References
If you’ve reached this, you’ve made it!! Have a great day!
Clap away if this helped you out. It encourages me to write more posts. And thanks for the support.
Prady | @pradyumna_d | “File Your Cryptocurrency Taxes UsingBearTax!”