Got it. So "copy&repackage" is the only correct way. Thanks for all your responses.
On Nov 11, 4:14 pm, Dianne Hackborn <[email protected]> wrote: > The android base class path includes some apache libraries like this. > You'll need to put them in your own namespace if building into your own > app, to avoid conflicts. > > > > > > > > > > On Thu, Nov 10, 2011 at 10:56 PM, Yongce <[email protected]> wrote: > > I could copy the source files of the library into my project > > and place them in another package name, > > then there is no trouble. > > But I think it's a bad idea to do that. > > > On Nov 11, 8:34 am, Zsolt Vasvari <[email protected]> wrote: > > > I doubt you can. I'd ask the authors of your library to see if they > > > have instructions on how to use it on Android. You have to realize > > > that not every library you find on the web will be compatible with > > > Android out of the box. > > > > On Nov 10, 4:35 pm, Yongce <[email protected]> wrote: > > > > > Hi guys, > > > > > My project is using classes from the 'commons-codec' library. > > > > So I included commons-codec.jar in my project. > > > > But I found this library is also included in Android. > > > > > Now, the problem is that the internal Android one is loaded and used > > > > always. > > > > The one included in my apk has no chance to get used. > > > > So, how can I get rid of the internal one and use the one provided by > > > > me? > > > > > PS, > > > > I know I can copy the code directly into my project but I don't think > > > > it's the correct way. > > > > > Thanks > > > > YC > > > -- > > 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 > > -- > 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. -- 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

