Home Ask Login Register

Developers Planet

Your answer is one click away!

P5music February 2016

Android: app Singleton and separate process service

I am testing a service in a separate process in my app. I am experiencing null pointer error when accessing some fields of the app singleton. I think the singleton is not the same so I am asking here how to share the same singleton between the app and the service on separate process.


Gabe Sechan February 2016

Separate process? You don't. That's the point of a separate process- they don't share memory at all. You need to communicate via IPC.

Post Status

Asked in February 2016
Viewed 3,275 times
Voted 9
Answered 1 times


Leave an answer

Quote of the day: live life