I have a class that is currently extending Activity and I have methods like findViewById, ArrayAdapter etc. I want to turn it into an independent class but all the above met
if you want to call any function that belongs to Activity then only thing you need to have is context of the Activity.
Activity
eg.
class A extends Activity { Context ctx; void onCreate(Bundle b) ctx = this; B bob = new B(ctx); } }
Here is class B.
class B { B (Activity a) { a.anyFunctionOfActivity(); } }