Re: [android-developers] Re: Java classes not inclded in android

2010-09-30 Thread Fabrizio Giudici

 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


[android-developers] Re: Java classes not inclded in android

2010-09-27 Thread Lance Nanek
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.

On Sep 26, 9:32 pm, altaf sayyed altafhsay...@gmail.com wrote:
 How can I install java classes not included with android ?

 Is it possible to add java.awt.image package into android?

 Where can I find above package jar file?

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


Re: [android-developers] Re: Java classes not inclded in android

2010-09-27 Thread Mark Murphy
Yeah, I've done that too, also with java.beans as it turns out.
java.awt.image, though, may depend on java.awt and other stuff that's
not in Android, and so this solution may be impractical in this case.

On Mon, Sep 27, 2010 at 7:49 PM, Lance Nanek lna...@gmail.com 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.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

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