2014-10-12 54 views
2

詢問用戶使用來選擇驅動器帳戶的檔案谷歌Android驅動器打開文件意圖

  IntentSender intentSender = Drive.DriveApi .newOpenFileActivityBuilder() 
      .setMimeType(new String[] { "text/plain", "text/html" }) 
      .build(getGoogleApiClient()); 
    try { 
     startIntentSenderForResult(
       intentSender, REQUEST_CODE_OPENER, null, 0, 0, 0); 
    } catch (SendIntentException e) { 
     Log.w(TAG, "Unable to send intent", e); 
    } 
  • 如何設置起始默認文件夾,好比說我想要開一個當驅動器文件瀏覽器打開時,默認由我的應用創建的文件夾?
  • 回答