How do I make a toast from a non activity class?
Are you forgetting Toast#show
?
Toast toast = Toast.makeText(context, "sometext", Toast.LENGTH_LONG);
toast.show();
You must call show()
as well:
Toast.makeText(context, "sometext", Toast.LENGTH_LONG).show();