Hi guys,
    I meet an issue.
    I have two services, both of them lies in separate apk,  which run
in same process. The two service share same jar file by <uses-library>
method.  The jar file implement a  class, say "test", is a singleton.
But I found that two instance of test is created under this case,
could anybody give me some tips? I want to ensure it's singleton.

Thanks,
Jove

Test.jar -> test.class
A.apk -> A.class
B.apk -> B.class

A.class call Test.getInstance()
B.class also call Test.getInstance()

A and B share same process, but two instance of Test is created under
this case.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to