Reuse of Methods between Activityes

0

Good morning, I wonder if there is any restriction or anti-default to create a BaseActivity with the methods in common between the other activities and extend these to BaseActivity to use its methods. An example is when creating a new Firebase Database instance. It stays in my BaseActivity. And when I need to create a new instance I call the Baseactivity method and passed my Database reference;

Thank you in advance

    
asked by anonymous 31.05.2018 / 17:10

0 answers