Menu

javaGeom on android

patte8
2011-11-25
2013-10-30
  • patte8

    patte8 - 2011-11-25

    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

     
  • David

    David - 2011-11-27

    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

     
  • patte8

    patte8 - 2011-11-27

    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

     
  • David

    David - 2011-11-28

    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 !

     
  • David

    David - 2011-11-29

    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,

     
  • waXim

    waXim - 2013-10-30

    I have also same problem..but i coudlnt fix it..plese help me.. Thankx

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.