@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_debug_action_showdrivefiles); mLogArea = (TextView) findViewById(R.id.logArea); mProgressDialog = new ProgressDialog(this); mGoogleApiClient = new Builder(this) .addApi(Drive.API) .addScope(Drive.SCOPE_APPFOLDER) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .setAccountName(AccountUtils.getActiveAccountName(this)) .build(); }