What i want to do is create a java file that has various functions and I would like to use it across the whole project. For example check Internet Connection. Then I would like to call that function on each activity. Does anyone know how to do that?
Share
Create Class like this and add your functions here :
Then declare instance in your activity :
Then initialize and use methods from that global class :
Permission required in your Manifest file :
Thanks.