title: How do I use the Google drive API key to access drive content from android application?
body: <p>I can't access Google drive. I created an API KEY in Google API console and enabled Google Drive API and SDK. Where do I set that API KEY in code?</p>
  
  <p>Drive builder does not have a <code>setJsonHttpRequestInitializer</code> method. Where can I set the KEY?Is there alternatives?</p>
  
  <pre><code>private Drive getDriveService(String token) {
  
  HttpTransport ht = AndroidHttp.newCompatibleTransport(); 
  JacksonFactory jsonFactory = new JacksonFactory();          
  Credential credentials = new GoogleCredential().setAccessToken(token);                                                          
  
      Drive.Builder b = new Drive.Builder(ht, jsonFactory, credentials);
      b.setHttpRequestInitializer(credentials);
  
  return b.build();
  }
  </code></pre>
  
  <p>Getting:</p>
  
  <pre><code> com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
   {
     "code" : 403,
     "errors" : [ {
       "domain" : "usageLimits",
       "message" : "Access Not Configured",
       "reason" : "accessNotConfigured"
    } ],
    "message" : "Access Not Configured"
   }
  </code></pre>