On 9/28/10 01:49 , Lance Nanek wrote:
I kind of managed this the other day in a hackish sort of way. I
wanted to use an open source RSS library that used java.beans.** Java
classes, which aren't in Android. So I downloaded the source for those
classes from the Apache Harmony project, ripped out all the references
to AWT stuff, and got the library source code imported and compiling
against it. Then I refactored the packages to notjava.beans.**. So
anyway, sometimes you can work out a substitute for the missing Java
classes and alter all references to point to that substitute.
I've answered to this question a number of times recently... The quickest way to do this is not by refactoring the classes, but by using static bytecode manipulation tools. They are able to replace the references directly in bytecode, without need of patching sources and recompile them. They are available both for Ant and Maven.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it

--
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