Google Android is making some strange updates to the API/SDK related to Play Services. They have deprecated the Drive.SCOPE_APPFOLDER option and advice developers to stop using it.
See the docs here: https://developers.google.com/drive/android/deprecation
At the same time, their most recent examples (updated 20 days ago) on how to implement Play Services Saved Games use this scope and do not offer an alternative to using it.
See it here: https://github.com/playgameservices/android-basic-samples/blob/bd72ba919a8a840dec33e83def5e366816367a42/CollectAllTheStars2/src/main/java/com/google/example/games/catt2/MainActivity.java#L310
What we as developers using the Play Services Saved Games API should do to replace this scope?
And what the heck is happening with the Google Play Services ecosystem in recent years?
Things that just work are changed to confuse, not work, or be more complicated than previous versions (i.e. the new Saved Games API).
Direct answer is DriveScopes.DRIVE_APPDATA (com.google.apis:google-api-services-drive:v3-rev197-1.25.0).
GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN)
.requestScopes(Scope(DriveScopes.DRIVE_APPDATA))
.build()
Related
I'm building a simple android app that uses Google maps api to display map and navigation. As you may know Google maps need Play services Library to run on client android phone. i want my app to run in much older android OS's(14,15,..)
Problems:
1- Clients need to install or activate Play services app.
2- then Clients have to update play services app to the latest version to use my app with google maps.
3- how to make app to run in older androids? just by specifying min sdk ?
so in order to solve first and third problem i've no idea but for the second one :
building project with older Play service dependencies may help but i dont know how to do this or even it helps or not.
it'll appreciate if guys offer any solutions !
Thank you all.
What are the recommended practices for maintaining the widest backwards compatibility of an Android app while depending on Google Play Services?
Here are the pointers I was able to aggregate concerning backwards compatibility, including those that use Google Play Services.
The Google Maps Android API uses OpenGL ES version 2 to render the map. The least Android API version that has support for this is API 8 or Android 2.2 .
Compile against the oldest version of Google Play Services that contains the APIs that you need. As further discussed in this thread, refrain from using wildcards like 5.+ because that updates to the latest play services. Instead use a widely used version like com.google.android.gms:play-services:5.0.89.
Use the V4 support library to verify and request permissions.
com.android.support:support-v4:23.0.1
You might also check some additional insight from this SO thread.
it's been days since I started reading pages and pages on the internet in order to clean my mind on the question up here (for an assignment).
I have to write a school assignment about the differences between the location APIs on the Android platform and those ones introduced with the Google Play Services. So far so good, in a certain way.
My doubt regards what my teacher said (and well, it's the title of the assigment): "Analysis of Android 5 location APIs and comparison with older versions of the platform".
Android 5 came out during November 2014.
What I was thinking to write about was the introduction of FusedLocationProviderAPI and all its features but I can't find anywhere when these location APIs were added to Google Play Services. It seems they've been put out before the rollout of Android 5.
My question is, am I on the right way? In other case, what kind of new location based feature has been introduced with Android 5?
thanks
I'd like to implement banner-ads in my new app and stumbled across two possibilitys of doing this.
The first one is using the Android SDK: com.google.ads.*
The second one is using Google Play Services: com.google.android.gms.ads.*
I googled a lot and read the documentation but I found no resources which state the differences between both solutions.
What is the difference between both and which one is the best if I simply want to add banner-ads in my app?
Direct to the point,
The main difference is that if you use Google Play Services one then you will use Google play service APIs. If you use other modules of Google Play like maps, location, gcm, play games then you can use com.google.android.gms.ads.* but if you don't use other Services then use com.google.ads.*
Their behavior is same...
As Selvin did not post his comment as an answer I'll answer this question by myself:
Use the Google Play Services com.google.android.gms.ads.*
Don't use the Android SDK for Ads because it is deprecated:
Deprecated. On August 1, 2014, Google Play will stop accepting new or
updated apps that use the old standalone Google Mobile Ads SDK v6.4.1
or lower. You must upgrade to the Google Play version of the Mobile
Ads SDK by then.
Google Mobile Ads SDK
I'm currently using Google maps API and directions API for getting routes, however there is a limitation upto 2500 requests per day. so while searching for a way, got confused after i came across this link..
Google Maps Mobile SDK for Business: Android
Can anyone please explain the difference between this sdk and google maps API..?
its basically a software development kit that makes use of the google maps api and helps you in development of apps that use those apis... if request limitation is an issue try other opensource apis like argcis or tomtom etc
In order to use the individual SDK such as map, you would require a key. That key is persistent, meaning once you have one, you can keep using that same key in your app manifest, regardless of how many copies of the same app you have.
However, there is a daily limit imposed on how much keys can be requested per day from google to prevent abuse. With that said, I don't think you would have a problem of requesting one. If it is given out for today, just wait till tomorrow and the limit would be refreshed.
As for the Enterprise version, you get more support over the normal version. The main differences is that you get the Business SDK as a static library rather than one using the Google Play Services. That is all.
I want to add achievements to my app. I started doing such my way, but after the last release, with the new Games API, I've seen it looks clearly better than coding all by myself. What I don't know if there are clauses that avoid using the Game API for regular apps rather than games.
PS: I've checked twice the Games Services website, but nothing appears there.
I don't see any problem with that!
This concept is called gamification:
http://en.wikipedia.org/wiki/Gamification