Jove wrote: > 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.
If you can explain a bit about how you are using <uses-library> for your own JAR files, I might be able to figure out why you are getting two instances. I have not seen much use of <uses-library> outside of the Google Maps situation. How are you using it in your application? -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

