Bhavesh avatar

Android P will restrict access to unofficial APIs

bhavesh18

Published: 04 Mar 2018 › Updated: 04 Mar 2018Android P will restrict access to unofficial APIs

Android P will restrict access to unofficial APIs

android-pi.pngWe had a few hints but now it's official: Google will limit access to non-public APIs starting with Android P. In other words, APIs that are not supported in the Android SDK will no longer be usable by developers. BigG has repeatedly recommended in the past to avoid unofficial APIs in the development of applications to avoid bugs and errors that inevitably emerge unexpectedly with each update.

The reasons why you rely on undocumented APIs are various: sometimes it's just easier, other times there are no official alternatives. This is why Google seems to be willing to change the situation a little at a time. As a first step in fact will be blocked API that are used little or nothing. In these cases, an error will be displayed if you try to access these APIs.

READ ALSO: Program in Kotlin with Android KTX

The limitations will increase inexorably but gradually giving developers time to migrate to official APIs. It will still be possible to use unofficial ones where it is simpler, but only as long as an app is not updated to match the last level of the API. For all other cases where no official APIs exist, a bug tracker has been implemented to request new ones.

Leave Android P will restrict access to unofficial APIs to:

Written by

Engeering student

Read more #steemitboard posts


Best Posts From Bhavesh

We have not curated any of bhavesh18's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Bhavesh