I intend to use javaGeom in an android application.
Unfortunately this didn't work at first try, because the android SDK doesn't include java.awt
Error: The type java.awt.geom.Point2D cannot be resolved. It is indirectly referenced from required .class files
Manually including the required java.awt classes didn't work neither, because android doesn't like packages like java.* and yes it would be ugly.
What would you suggest to do? Is there any proper solution?
Thank you very much!
patte
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, the Point2D class inherits the awt Point class. This makes the library not usable on android.
However, it should not be that difficult to remove the dependency. without this inheritance, it should run on android. Drawing functions would still be specific to awt process, though…
stay tuned…
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes the drawing functions wouldn't be available, but the the one related to calculations would. And that would be great for in my case. How would you suggest do accomplish this? Should I check out the sources and create a patch? What would be best practice?
thanks
patte
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I actually started to work on it, and it seems to be functional (some modifs to the code, but does not break the tests).
I have made changes on a local copy. I will commit in the next few days (I will also take time to create ew branch with current version, and thinking on release numebring).
should be ok by the end of the week !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I have commited a modified version that removes dependency to java.awt.Point. It can be accessed by checkout of the trunk.
TelI me f it works, I would be interested to know if the lib works on android !
regards,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I intend to use javaGeom in an android application.
Unfortunately this didn't work at first try, because the android SDK doesn't include java.awt
Error: The type java.awt.geom.Point2D cannot be resolved. It is indirectly referenced from required .class files
Manually including the required java.awt classes didn't work neither, because android doesn't like packages like java.* and yes it would be ugly.
What would you suggest to do? Is there any proper solution?
Thank you very much!
patte
Hi,
Yes, the Point2D class inherits the awt Point class. This makes the library not usable on android.
However, it should not be that difficult to remove the dependency. without this inheritance, it should run on android. Drawing functions would still be specific to awt process, though…
stay tuned…
David
Hi and thanks for your reply.
Yes the drawing functions wouldn't be available, but the the one related to calculations would. And that would be great for in my case. How would you suggest do accomplish this? Should I check out the sources and create a patch? What would be best practice?
thanks
patte
Hi,
I actually started to work on it, and it seems to be functional (some modifs to the code, but does not break the tests).
I have made changes on a local copy. I will commit in the next few days (I will also take time to create ew branch with current version, and thinking on release numebring).
should be ok by the end of the week !
Hi, I have commited a modified version that removes dependency to java.awt.Point. It can be accessed by checkout of the trunk.
TelI me f it works, I would be interested to know if the lib works on android !
regards,
I have also same problem..but i coudlnt fix it..plese help me.. Thankx