JAVA ANDROID matching