google-drive-android-api

cannot get folderId that i just created on google drive

*爱你&永不变心* 提交于 2019-12-17 02:25:25
问题 public class Helpers extends Activity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { SharedPreferences preferences; private static final String TAG = "BaseDriveActivity"; public static String EXISTING_FOLDER_ID; protected static final int REQUEST_CODE_RESOLUTION = 1; protected static final int NEXT_AVAILABLE_REQUEST_CODE = 2; public static final String folderId = "FOLDER_ID"; public static final String fileName = "folderId"; private

Non latin symbols in setQ(query) in Google Drive API V2

青春壹個敷衍的年華 提交于 2019-12-14 03:44:26
问题 I have Google Drive with two folders in the root - with latin and non latin (cyrillic) names: When I search the Google Drive root with a String query = "'root' in parents and title='Archive' and trashed=false"; drive.files().list().setQ(query).execute() it gives me a metadata of Archive folder as on picture below: But if I change query string to 'root' in parents and title='Архив' and trashed=false (with Cyrillic folder name) it gives me nothing: I am using V2 of Google Drive API by means of

GoogleDrive Android API Compile error:

£可爱£侵袭症+ 提交于 2019-12-13 17:54:25
问题 I am getting a compile error when I try to run the code shown below: package com.example.dude.googleapi; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.Menu; import android.view.MenuItem; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.drive.Drive; public class MainActivity extends ActionBarActivity implements GoogleApiClient.OnConnectionFailedListener

Google Drive Android API: Deleted folder still exists in query

跟風遠走 提交于 2019-12-13 15:25:10
问题 Running the code below, I create a folder with Google Drive Android API on a tablet. After a few seconds, delete that folder from a remote location on a PC. When I re-run the code, the API still thinks 'MyFolder' exists, even though it was deleted and not visible in the Google Drive app on the tablet. The folder persistance finally disappears after a while and the code works as expected. Is this expected behavior for Cloud drives? Query query = new Query.Builder() .addFilter(Filters.and

Error getGoogleAppId failed with status: 10 Android KitKat - GCM and Google Drive

删除回忆录丶 提交于 2019-12-13 11:42:09
问题 I am running this in a Samsung Galaxy S4 mini. KitKat Android. In the application, I use both GCM for messaging, and Google Drive API. I think the error I am getting is from GCM, but I am not sure. Here is LogCat: I/PersonaManager﹕ getPersonaService() name persona_policy I/GMPM﹕ App measurement is starting up I/PersonaManager﹕ getPersonaService() name persona_policy I/MainActivity﹕ onCreate E/GMPM﹕ getGoogleAppId failed with status: 10 E/GMPM﹕ Uploading is not possible. App measurement

Unable to fetch file from google drive

折月煮酒 提交于 2019-12-13 09:53:34
问题 I am working on a project where user can upload a document to my server. This file can be selected either from local storage or a cloud storage ,say google drive. When i click on the file from file chooser all i am receiving is an account info and doc info as a uri, When i tried to fetch doc from this URI it is showing FileNotFound . I have gone through Drive API also but It is a bit confusing to me. Following are the points i came accross while trying Google Drive API: 1. How to select file

Android Google Drive EXISTING_FOLDER_ID,EXISTING_FILE_ID

匆匆过客 提交于 2019-12-13 06:40:56
问题 In BaseDemoActivity.java from Google Drive Demo app https://github.com/googledrive/android-demos/blob/master/src/com/google/android/gms/drive/sample/demo/BaseDemoActivity.java what i have replace in EXISTING_FOLDER_ID , EXISTING_FILE_ID , EXTRA_ACCOUNT_NAME Please provide steps to get this values /** * DriveId of an existing folder to be used as a parent folder in * folder operations samples. */ public static final String EXISTING_FOLDER_ID = "????"; /** * DriveId of an existing file to be

How to create multiple files programmatically using Drive API for Android?

回眸只為那壹抹淺笑 提交于 2019-12-13 05:19:47
问题 I am able to create a single file in google drive using CreateFileActivity.java.But i want to upload two or more files to the google drive at a time.How is it possible to create multiple files in google drive for android? 回答1: Assuming, you have multiple files on your Android device, represented by java.io.File objects with known names (titles) and mime type(s): java.io.File[] files = {...}; String[] names[] = {...}; String[] mimes[] = {...}; You can use this construct to create a set of

Create / Edit / Retrieve DB file with GDAA (Google Drive Api for Android)

a 夏天 提交于 2019-12-13 01:18:36
问题 skilled friends. Could you someone help me with my problem, please? I'm trying to use GDAA (Google Drive API for Android = https://developers.google.com/drive/android/appfolder) for backup and restore my DB file. Not REST API. I tried use their demo classes from here: https://github.com/googledrive/android-demos/, but no positive result. I suceed with authentication and with save my DB file into App Folder in Google Drive, but I can not edit or retrieve this file. I only still create new and

Google Drive Android API ConnectionResult Error

杀马特。学长 韩版系。学妹 提交于 2019-12-12 10:49:19
问题 I'm making an app and I'm integrating the Google Drive Android API into it. I have a main activity then a fragment that opens that leads to google drive. However, when I try to sign in (it doesn't matter what gmail account, I've tried existing ones, creating new ones, whatever) I get ConnectionResult error code 17 SIGN_IN_FAILED. The app is authorized in the developer console and the Drive API is enabled. I don't know what else to do. Here is the relevant code: public class