I have one spreadsheet file in my Google Drive that I want to sync with an Android app. After successful synchronization, I have some search criteria in my applications, I want to get results based on these criteria from the file that I am synchronizing. I am doing this for the first time and am not getting good resources to start with.
1) How to sync Google Drive file in Android app?
2) How to get data from a table that I synchronized?
Note I am also confused between the Google Docs API and the Google Drive SDK .
What to use in my application?
I have only one file to sync every time, and not all files. And the file is open to everyone with a private key.
I have implemented some code, but it does not work. Below is my shared spreadsheet address that I want to sync in my Android app.
I follow the steps from here .
My test spreadsheet url
try { String USERNAME = "xxxxx"; String PASSWORD = "xxxxx"; SpreadsheetService service = new SpreadsheetService("Testing"); service.setUserCredentials(USERNAME, PASSWORD);
source share