The license given on this repository (and therefore on this Android library) is Apache 2.0. However, this is incorrect since it contains code which is under the GPLv2 license. I am not a lawyer, but the short explanation of this is that code derived from GPLv2-licensed code must also be GPLv2-licensed: the GPL licenses declare that the licensed code is free, and must only be used in free products, and the way they ensure that it's never used in any non-free products is to require that derivative works are also licensed under the same GPL license.
The consequence of this is that this entire repository should be GPLv2 licensed. (I'm not even sure if you're allowed to have Apache-2.0-licensed code in a GPLv2-licensed project, but let's assume for now that's OK.) This means that this Android library cannot be used in commercial products - you cannot make money from any app that uses this code. Even releasing a free app on the Play Store with a GPLv2 license has its complications.
Please fix the license given with this repository. I don't want other people like me wasting time thinking this library was Apache-2.0 licensed when it's illegal for it to be, and worse I don't want other people getting sued by Sun (now Oracle) for breaching their license.
The license given on this repository (and therefore on this Android library) is Apache 2.0. However, this is incorrect since it contains code which is under the GPLv2 license. I am not a lawyer, but the short explanation of this is that code derived from GPLv2-licensed code must also be GPLv2-licensed: the GPL licenses declare that the licensed code is free, and must only be used in free products, and the way they ensure that it's never used in any non-free products is to require that derivative works are also licensed under the same GPL license.
The consequence of this is that this entire repository should be GPLv2 licensed. (I'm not even sure if you're allowed to have Apache-2.0-licensed code in a GPLv2-licensed project, but let's assume for now that's OK.) This means that this Android library cannot be used in commercial products - you cannot make money from any app that uses this code. Even releasing a free app on the Play Store with a GPLv2 license has its complications.
Please fix the license given with this repository. I don't want other people like me wasting time thinking this library was Apache-2.0 licensed when it's illegal for it to be, and worse I don't want other people getting sued by Sun (now Oracle) for breaching their license.