Skip to content

Instantly share code, notes, and snippets.

@KhunHtetzNaing
Created August 19, 2018 09:31
Show Gist options
  • Save KhunHtetzNaing/ded82d36c70d1ab4f9cd26dcab5b09c2 to your computer and use it in GitHub Desktop.
Save KhunHtetzNaing/ded82d36c70d1ab4f9cd26dcab5b09c2 to your computer and use it in GitHub Desktop.
Example Using Clone Checker
String imei = "123456789012345";
CloneChecker cloneChecker = new CloneChecker(MainActivity.this, imei);
cloneChecker.onFinish(new CloneChecker.OnTaskCompleted() {
@Override
public void onTaskCompleted(boolean ogay) {
if (ogay) {
//This is original
} else {
//This is clone
}
}
@Override
public void onError() {
Toast.makeText(MainActivity.this, "Error!\nPlease try again!", Toast.LENGTH_SHORT).show();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment