title: Can I create an object of an Activity in other class?
body: <p>I have defined a function in <code>MainActivity</code> now I want to access the function from another class in my app. I have created an object of the <code>MainActivity</code> and with that object I have called the function. Although there is no error, it's not executing. Every time I try to execute, the app crashes.</p>