If you want it to work like the window manager, how about doing the same thing it does -- use IBinder.linkToDeath() to get a callback if the client process dies.
On Tue, May 11, 2010 at 5:47 PM, Tomei Ningen <[email protected]>wrote: > Hi, > > I need to implement a new service inside system service. I would like > it to work similar to the window manager -- a client would connect to > my service and create a "thing" (e.g., a window). When the client > disconnects (e.g., if its process gets killed), I need to delete this > "thing". > > How do I get a notification about client disconnection? Could anyone > point me to an example inside the system server? > > Thanks! > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- 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. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
