if (messages.length > -1) {
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, "Message recieved: " + messages[0].getOriginatingAddress(), duration);
toast.show();
String value = "Message recieved: " + messages[0].getOriginatingAddress();
my code here gets an sms. i want to bring it back to my main activity but i CANT use i intent and restart that activity(the broadcast reciever is a background service and people will be using the app during this.) instead of toasting how can i pass that string back to the activity (i only have one main one).