Is there any global activity on Android such that I put my code in that one activity, and it affects all activities in my project? This occurs to me because the same code is
Take your first main activity write code there, and simply after that extend all the other activity with this activity.....e.g. MainActivity is your first and main activity then write this code there, and after that simply take an activity say it First then extend it with MainActivity rather than Activity...!! and That's it..........