ListenChangeEventsForFilesActivity.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:HereAStory-Android 作者:
/**
 * Forces user to pick a file on connection.
 */
@Override
public void onConnected(Bundle connectionHint) {
    if (mSelectedFileId == null) {
        IntentSender intentSender = Drive.DriveApi
                .newOpenFileActivityBuilder()
                .setMimeType(new String[] { "text/plain" })
                .build(getGoogleApiClient());
        try {
            startIntentSenderForResult(intentSender, REQUEST_CODE_OPENER,
                    null, 0, 0, 0);
        } catch (SendIntentException e) {
            Log.w(TAG, "Unable to send intent", e);
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号