got the some clues, if I add com.example.base into  BOOTCLASSPATH , it
resolved.
but every process will map my jar, does we have better solution?


On Mar 26, 11:45 am, Jove <jove.c...@gmail.com> wrote:
> Maps of my process, it's strange. com.example.base.jar is mapped
> twice. :(
>
> 41036000-41037000 r--s 00000000 1f:00 291        /system/framework/
> com.example.base.jar
> 41037000-41038000 r--s 00000000 1f:01 780        /data/dalvik-cache/
> sys...@framew...@com.example.base....@classes.dex
> 41038000-41040000 r--s 00000000 1f:01 536        /data/dalvik-cache/
> sys...@a...@examplekeypad....@classes.dex
> 41040000-41041000 rw-s 00000000 00:08 837        /MemoryHeapBase
> (deleted)
> 41041000-41042000 r--s 00000000 1f:00 291        /system/framework/
> com.example.base.jar
> 41042000-41043000 r--s 00000000 1f:01 780        /data/dalvik-cache/
> sys...@framew...@com.example.base....@classes.dex
>
> On Mar 26, 10:27 am, Jove <jove.c...@gmail.com> wrote:
>
> > Hi,
> >    I didn't get what you mean. Could you explain more?
> >    I build system.img and sdk myself, so I can add my
> > com.example.base.jar into system.img.
> > Thanks,
> > Jove
>
> > On Mar 26, 3:14 am, Dianne Hackborn <hack...@android.com> wrote:
>
> > > You can't currently make your own library in the SDK, so the questions
> > > should be on android-platform.
>
> > > On Wed, Mar 25, 2009 at 11:14 AM, Mark Murphy 
> > > <mmur...@commonsware.com>wrote:
>
> > > > 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
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support.  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 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