Skip to content

Instantly share code, notes, and snippets.

@miguelcardo
Created December 22, 2014 16:42
Show Gist options
  • Save miguelcardo/5f0df88650308e611a5f to your computer and use it in GitHub Desktop.
Save miguelcardo/5f0df88650308e611a5f to your computer and use it in GitHub Desktop.
Launch cardlet installation
protected void launchCardletInstallation() {
if (appInstalledOrNot(FIDESMO_APP)) {
try {
Intent intent = new Intent(SERVICE_DELIVERY_CARD_ACTION, Uri.parse(SERVICE_URI + APPLICATION_ID + "/" + SERVICE_ID));
startActivityForResult(intent, SERVICE_DELIVERY_REQUEST_CODE);
} catch (IllegalArgumentException e) {
Log.e(TAG, "Error when parsing URI");
}
} else {
notifyMustInstall();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment