I have an activity in which i am getting some value in string and i want to send that data to another activity. The data that i want to send changes frequently after calling some method. So i want to send updated data into another activity. My data will be updated anytime no matter whether i am on that activity or not. My code
if (event.equals("gameRequstinvitaion")) {
try {
socket.emit("gameRequstinvitaion", jsonObject);
gamerequest = jsonObject.toString();
Log.e("TAG", "gamereq" + gamerequest);
}
}
My gamerequest will be updated anytime so i want to send updated data to another activity. Is it possible?PleASE HELP ME OUT