I am facing a big problem in calling non static method from static method.
This is my code
Class SMS
{
public static void First_function()
{
SMS sms = new SMS();
sms.Second_function();
}
public void Second_function()
{
Toast.makeText(getApplicationContext(),"Hello",1).show(); // This i anable to display and cause crash
CallingCustomBaseAdapters(); //this was the adapter class and i anable to call this also
}
I am able to call Second_function but unable to get Toast and CallCustomBaseAdapter() method, crash occurs.
What should I do to fix that issue ?