-->

GooglePlayServicesUtil.getOpenSourceSoftware metho

2019-08-02 01:42发布

问题:

I am learning GoogleMaps through Lynda.com.In Displaying GooglePlay Services License they used a method called GooglePlayServicesUtil.getOpenSourceSoftware.I a m not able to find it.Can somebody please point out what the method has changed too? Thanks

回答1:

I assume that you mean getOpenSourceSoftwareLicenseInfo(). If so, they deprecated it, because it is no longer needed. They show their own software licenses in their own apps; you no longer need to show the license information yourself. Quoting what is in the JavaDocs at the moment:

This license information is displayed in Settings > Google > Open Source on any device running Google Play services. Applications do not need to display this license text, and this method will be removed in a future version of Google Play services.