lifx-sdk-java icon indicating copy to clipboard operation
lifx-sdk-java copied to clipboard

Make this project compatible with Android

Open loefberg opened this issue 11 years ago • 3 comments

Apparently it is almost possible to build this project on android. It would be really nice if we could go the last mile for our mobile friends. Any ideas?

loefberg avatar Jan 26 '15 11:01 loefberg

  • [ ] Get rid of AWT color, switch to int
  • [ ] Remove usages for java.util.Objects class

iheart2code avatar Jan 26 '15 20:01 iheart2code

Just found out that java.util.Objects is only included in Android as of Lollipop. Using it causes a crash on any earlier versions.

iheart2code avatar Feb 11 '15 04:02 iheart2code

OK, it looks like that is all that's needed. It's unfortunate that there aren't any cross-platform Color objects, but the only method we were using was the RGBtoHSB algorithm. I just pulled that out of the Java source and added an attribution. Not sure if we also need to include license info or anything.

iheart2code avatar Feb 11 '15 05:02 iheart2code