Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make this project compatible with Android #23

Open
loefberg opened this issue Jan 26, 2015 · 3 comments
Open

Make this project compatible with Android #23

loefberg opened this issue Jan 26, 2015 · 3 comments

Comments

@loefberg
Copy link
Owner

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?

@iheart2code
Copy link
Contributor

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

@iheart2code
Copy link
Contributor

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 added a commit to iheart2code/lifx-sdk-java that referenced this issue Feb 11, 2015
iheart2code added a commit to iheart2code/lifx-sdk-java that referenced this issue Feb 11, 2015
@iheart2code
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants