I need to upload an file from android device SDCARD onto google cloud, I google long time on internet,but I couldn't found correct version of Api to achieve file share over cloud. Help me with sample code to login and share files over cloud with right api.
I have no experience of this, but there does seem to be some documentation here:
https://developers.google.com/drive/get-started
Have you already looked through this?
EDIT: That appears to be for Chrome apps. There is a similar question here: Android API for Google Drive?
It looks like the short answer is the solution is a long one (people have mentioned having to do it manually :( )
Related
I've built an app using Ionic that takes pictures and uploads them to Firebase Storage. What I'd like to do next is to make it so that the directory structure and images are accessible from a Google Team Drive.
What would be a good way to go about this? I don't have any code examples because I'm inexperienced with this and I don't really know where to start.
Would I write code to put in Firebase functions that would upload the images every X hours to a Google Accounts' Team Drive? Since Firebase Storage is just using Google Cloud anyways is there an API I could use? Does Firebase have this capacity already and I just don't know about it?
The Team Drive is under G Suite for my company so I could get a Google account made just for this purpose.
I'm new to Stack Overflow, sorry if this post breaks any rules.
https://github.com/firebase/functions-samples/tree/master/google-sheet-sync
This is the only example on the internet that I could find that addressed this issue.
It is a working (With a few tweaks as of Novemeber 2017) example of OAuth and Google's API for uploading information from the Database to a Google Sheets document via an onWrite() event trigger.
I managed to get this working, and in combination with the Google API docs and a lot of rummaging have sort of managed to get Google Drive connected.
The key points are:
-Follow the Firebase Functions examples
-Examine the google-sheets-sync example
-Firebase Functions takes node.js javascript
Posting this answer because it sounds simple but this was a hell of a lot of digging for me to find this all.
I have an android app, i want to check for version code of it from Google play. please suggest some way to do this. Don't answer with MarketServiceApi and its link unless you have explored it by yourself. i have already done research on it and got nothing, but if it is working for you then suggest the procedure to use it.
How can I check if the file is uploaded to Google Drive using Google Drive Android API? I was looking here but the only file missing is the CheckFileSyncStatusActivity.java which, I guess, does the thing I need.
Though its very late to answer but you can make completion events to detect when upload is done to drive.
Here is a google link regarding that link
My Problem is, that I want to use any SDK or API to access my google drive from my android phone without using an existing google drive app on my android phone.
I read the instructions on this side: google drive sdk
The code examples does only work for desktop applications and the "integrate with Android" topic on the side does not provide any example how I can access my google drive from my android application.
I already read android-api-for-google-drive here but this leads only to more links and how-to's which are far to complicated and fuzzy.
Has anyone experience with connecting to google-drive from an android application and could help with any example code or "clean-and-short-explained" tutorial?
Luckily, just after you asked this question, Google released their Play Services (see this link), which makes it a heck of a lot easier to access files using the Drive SDK & Drive API. Please see my post on Google Plus that gives a step-by-step walkthrough and code example on how to integrate an Android app with Google Drive documents: https://plus.google.com/u/0/114042449736049687152/posts/CD3L8zcJg5Z
In the tutorial, I reference a particular Google IO 2012 talk (slides at https://docs.google.com/presentation/d/1LrEKp2PqESsES3upS1xsSARz35KS-9QHnYFTKvS2yzM/preview#slide=id.p19), but please read my G+ post because I go through the various flaws, pitfalls, and omitted details from this presentation.
Before you start coding anything, get yourself signed up for the Google APIs (see this link), get into the API Console, and turn on both the Google Drive API and Drive SDK.
Good luck & have fun!
my question is short.
I am making an application that creates and uses .kml map files. I thought it would be a very good idea if the user could upload his maps to Google "My maps" server (which imports .kml files through the browser version) from my application, and also load them afterwards. However, I have not found any documentation related to this possibility, and I have spent hours looking through the internet and the Google Maps Android API, without luck.
Does anyone know if my idea is possible? Or google keeps this closed for their internal applications?
Thanks :)
There is an API to upload .kml files to Google Maps (the Google Maps Data API), but it doesn't work due to a bug that Google have decided not to fix for some reason.
See my answer to the question "how can I upload a kml file with a script to google maps?" for the details