I have multiple activities in which I want to use same code in those activity.
I finished it with having same bunch of code in each activity.
How can minimize this redundant code.
For doing this I dont want to create object and use it’s methods for removing redundancy…
Plz help…
Thank U….
the solution is simple: extends the class Activity, and add him all the methods you want.
(I usually call this class BaseActivity for instance)
then, when you are developing new activity – instead of extend the class Activity – extends the class BaseActivity you’ve made, which contain the methods you added..