I have my main class where I have
... String ola="Hello little friends";
And I have my other class:
public class NotificacaoDiaria extends BroadcastReceiver {
@Override
public void onReceive(Context arg0, Intent arg1) {
Toast.makeText(arg0, "Funciona!!!", Toast.LENGTH_LONG).show();
Toast t = Toast.makeText(this, ola, Toast.LENGTH_SHORT).show();
}
}
I want this string to be interpreted here, not for this function, but for me to control it in that class.