Difference in Google Drive APIs? - android

I am working on an application for which I need to upload/download files from the user's Google Drive account. I came across two documentation from Google about using Google Drive API on Android Platfrom:
REST API
Google Drive API Android
I have following questions:
What is the difference between these two options?
What are the advantages and disadvantages of each option?
Which is a more suitable option for Android application development?
I would appreciate any suggestions and thoughts on this topic. Thank you.

Google Drive Android API is a native Android API which utilises the Google Play Services to communicate.
Whereas the rest API is a HTTP API - Which can be used in any platform - Web, Android, iOS. REST api is implemented using REST approach.
The Android API is an abstraction layer with certain optimisations. So your choice of API would depend on your use case.

Related

Google Places API questions

I'm working on a mobile app project that uses Google Places APIs and have some questions:
From my research in Google documentation, they allow FREE and UNLIMITED use of their Google Places API data when used by Android devices. Currently, my development team is accessing Google Places Web Services API for all API calls. For the Android devices, should I have them change to use Google Places API for Android in order to take advantage of this?
I read in Google's API policy that they may allow for caching of API data (with limitations - i.e. you must refresh every 30 days, etc) if you want to increase performance of your code and/or use in offline mode, etc. However, it says you must get their permission for caching from Google. I cannot find how or where to request this permission. Would be helpful if you can point me in the right direction with a form or a link or something.
Appreciate any help. Thanks.

What is the difference between Android API and Google API?

I have gone through some of the links that difference between the Google API and android API.I have not got clear explanation.Anyone Can you help me please?
Answer for your question is below
The google API includes
->Maps and other Google-specific libraries.
The Android one only includes
->core android libraries.
There is a huge set of google apis for using all google web services !
google maps
google search
google app engine
google signin
... (see google products: https://developers.google.com/products/?csw=1)
Android API is part of the Android SDK (software development kit) and is to develop android applications.
You can note that Android API may be considered as a part of google APIs because it authored by google.
Google API is for developing Google-based services such as Google Maps.
Android API is for developing Android apps.
google API:-
it uses all google specific libraries like google map,search engine,sign in.
Android API:-
it is also a part of google API.
it uses all core android libraries.
Android sdk holds Android API.
refenter link description here

Need Google Drive APIs Client Library code running samples

We need full access of users Google drive, but it's providing limited access. We are unable to find Google APIs Client Library samples. Attached linked provide following information for samples.
From the documentation
The Google Drive Android API currently only supports drive.file and drive.appfolder authorization scopes. If your application requires additional permissions or features not yet available in the Drive Android API, you must use the Google APIs Java Client.
Where can I find Google APIs Java Client documentation and samples?
The GDAA API you're referring to is an API build on top of the REST API and supports only FILE scope.
The REST API supports the DRIVE scope that allows access to all folders/files.
I can offer a very simple DEMO of basic CRUD functionality for the REST API here (and parallel version of the GDAA API here).
Good Luck.
If you need more than the drive.file and drive.appfolder scope offer for your android application then you will need to use the API Client Library for Java instead of the Google Drive Android API available in Google Play Services.
You will also need the Google APIs Client Library for Java which performs common REST API tasks including authentication and token management. Review the "The library runs on Android (#Beta)" section in the README to see how to retrieve a Drive service object on android.

Offline mode for Android app using the Google Maps API

Is there a way to use the offline mode in Android apps using the Google Maps API?
Any direction to a tutorial or source code would be a massive help. I've been searching for hours without any luck. I know Google has released a way of using maps offline, but is it available for Android developers?
See this solution or this one. Basically you just create your own tileprovider and access tiles locally. It is totally doable with the v2 API. API Reference
There's some false information floating around out there that the v2 Google Maps API requires an Internet connection. There was a but where the API would require a single access after app install to verify with Google Play services, but I believe this has been fixed.
See this and this.

What is google API and framework API

I m confused about google API and android platform SDK API. are they same ? if not, What are the each used for?
Android is developed by Google, but can also be used without any Google services. So the Android platform SDK can be used for developing Android applications. If you however want to use any Google services in your Android Application, you should use the Google API Java Client library.
Google api is used for using google specific services like google map or google admob or google fusion. These generally contact google server to fetch data.
However, android platform sdk api is not google specific. It provides interface for application development. These may or may not require internet(depending on what you use it for)

Categories

Resources