Skip to content

Instantly share code, notes, and snippets.

@darko1002001
Created September 15, 2011 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darko1002001/1218943 to your computer and use it in GitHub Desktop.
Save darko1002001/1218943 to your computer and use it in GitHub Desktop.
GCAsset.verify()
Get the file you want to verify:
File file = new File(Environment.getExternalStorageDirectory() + "/ac3_nogradient.jpg");
Log.e("SDKTest", file.getPath());
// Set it to the model
GCLocalAssetModel model = new GCLocalAssetModel();
model.setLocalImageFile(file);
// Generate the request:
GCBaseRequest request = model.verify(GCAccount.getInstance(Context), true);
//execute the request
sync:
request.execute();
async:
new GCAsyncRunner(request,GCAsyncCallback).execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment