Update 6 May 2017: Google has removed the attribution requirements from the Google Maps API. This can be seen here: https://issuetracker.google.com/issues/35827189
According to Google's introduction to the Google Maps Android API,
If you use the Google Maps Android API in your application, you must include the Google Play Services attribution text as part of a "Legal Notices" section in your application. Including legal notices as an independent menu item, or as part of an "About" menu item, is recommended.
The attribution text is available by making a call to GoogleApiAvailability.getOpenSourceSoftwareLicenseInfo.
The thing is that the text is really long (542,653 characters!) and trying to set that into a textView blocks the main thread for a long time. Has anyone else run into this issue? Is there a URL that we could link to instead?
I did some research and found that others have had this issue and Google has acknowledged it as a defect. However, until this is updated I can't properly attribute Google without creating a fatal performance flaw in my app.
Q: Has anyone found a way to quickly render Google's open-source-attribution text without blocking the main thread? Or does anyone know of something I could link to until the issue is resolved?
that the text is really long
It is! Converted to a text file, it is around half a megabyte of text. The reason is that it contains:
There are also some other licenses that are not easy to find on "reliable" sites so it's better not to link to them. After replacing the text with links, the file goes down to less than 22 KB.
Still quite long!
I know... license information should not rely on external URLs. However, 514 KB of text is insane and any app either has to lag really bad to include the license, or not include any license at all. I think this compromise is the best solution.
Or does anyone know of something I could link to until the issue is resolved?
The text can be stored in a text file and retrieved when needed.
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