i have defined a function in mainactivity now i want to access with another class in my app.I have created a object of the mainactivity by using that object i have called the function.It is not showing any error but its not executing every time i try to execute the app crashes? any solutionsi have defined a function in mainactivity now i