Converted project from Android library into Java