This compiles without a problem but when I call myToast from within the B4A project the toast message does not show. What am I missing?
B4X:
import android.widget.Toast;
import anywheresoftware.b4a.BA;
...
...
public class Toasting {
public void myToast(final BA ba) {
CharSequence text = "Hello toast!";
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(ba.context.getApplicationContext(), "Hello toast!", duration);
toast.show();
...
...
...