I got a situation where i have two APPS for simplicity keep it as APP1
and APP2
, i am passing an object remoteCallback
as CALLBACK
from APP1 to APP2 for future use.
where based on result APP2 will instantiate a method updateStatus(String msg)
using a object remoteCallback
, Everything is working fine but, when i close the APP1 and clears the memory, APP2 is unable to call the method i know what causes this problem i want to know is there any way to make the object(remoteCallback) live even the APP1 closed.
Thanks in advance.
There is no way we cant stop an app from destroy so instead of passing an callback to get details use BROADCAST RECEIVER
.
This is the solution i adapted to this situation.