Google Maps documentation says that one has to include the Google Play Services attribution text as part of a "Legal Notices". The attribution text is available by making a call to GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo
. But GooglePlayServicesUtil is not available until Android 2.2. My app is designed for 2.0, so what is this text and where do I get it?
This is what a
Log.d("DEBUG", GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(this));
reveals (Feb 2013 - this may have changed meanwhile! See the first comment):
This product includes software from the The Android Open Source Project Copyright (c) 2005-2008, The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
And then the Apache License Version 2.0 follows.
Edit Jan 3 2016: GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(Context)
is now deprecated.
Use GoogleApiAvailability.getInstance().getOpenSourceSoftwareLicenseInfo(Context);
instead.
Edit Oct 31 '17 As donfuxx said its no longer need to be shown in app. Google doc
Where can I find the attribution information?
You can find the attribution in the line(s) shown on the bottom of the Content in the
products along with copyright notices, such as “Map data ©2012 Google, Sanborn”. Note that the exact text of the attribution changes based on geography and content type. The attribution text must be legible to the average viewer or reader
Taken from: http://www.google.com/permissions/geoguidelines/attr-guide.html
Here is a page with more general info, along with a Permissions Tool you can use if your use-case is more complex.
This Image depicts exactly the text you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With