seguito this tutorial, ho incollato questo codice nella mia attività principale:Google Drive per Android problema API esercitazione
@Override
public void onConnectionFailed(ConnectionResult connectionResult) {
if (connectionResult.hasResolution()) {
try {
connectionResult.startResolutionForResult(this, RESOLVE_CONNECTION_REQUEST_CODE);
} catch (IntentSender.SendIntentException e) {
// Unable to resolve, message user appropriately
}
} else {
GooglePlayServicesUtil.getErrorDialog(connectionResult.getErrorCode(), this, 0).show();
}
}
finisco per dover importare un librerie buncha, ma ancora non in grado di correggere questo errore:
RESOLVE_CONNECTION_REQUEST_CODE cannot be resolved to a variable
qualche idea ??? Non riesco a capire quale libreria contenga questa costante ...