Thanks. I think forums may not be the right choice for this particular question. I think I can figure this out by myself methodically. Like Mr.Hackborn said this particular concept is vague in Android platform.
-Jacob On May 5, 11:44 am, Dianne Hackborn <[email protected]> wrote: > The normal way you do this on Android is by providing an IBinder object > across the processes and using IBinder.linkToDeath. > > That said, as others have commented, "stay connected with each other" and > "know when an app stops working" are *really* nebulous concepts on Android, > and if you are thinking in those terms there is a really good chance what > you are trying to do is fundamentally wrong. It's hard to say more though > without knowing what you are trying to do. > > > > > > > > > > On Wed, May 4, 2011 at 8:45 AM, Jacob <[email protected]> wrote: > > Hi > > > I have 2 apps; need to stay communicated with each other and make sure > > battery is not affected. > > I know I can open TCP socket between them and get notified if for some > > reason the other app stops working. > > I thought TCP sockets might be expensive to maintain and perhaps drain > > battery? > > > Is there any other light weight way of achieving this obejctive? > > 1) Pipes - How to open a pipe between 2 apps? are they lighter than > > tcp sockets? > > 2) Files - using shared file between 2 apps (if signed with same > > certficate and using the same userid.) > > How to use this shared file to know if the other app is still > > running or not? locks? > > > Basically, I don't want to explicitely query if the other app is > > running or not every now and then and then communicate with it. > > Instead wait on some event that gets triggered when the other app is > > down. > > > Appreciate any suggestions on a light weight protocol. > > > Thank you > > Jacob > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

