I have About 15-20 Activity which uses the same function again and again I want to know is there any way to write that function once and call it again and again.
As writing the same piece of code again and again is going to be tough task and it will be very difficult if I have to change anything.
The function doesn't require any parameters, it's a simple function, which has no relation with current Activity.