WepsTech
The world of development
That is the big question in front of every developer to know about the changes, which are made in API 28+ (Android 9). So here I will introduce you with a description of a few important technical things, which you have to keep in mind while you are developing for API 28.
API 28 (Android 9) include different behavior changes which help to improve your application performance and security. But these changes take effect only if your app targets API level 28 or higher.
Apps that target Android 9 or higher and use foreground services must request the FOREGROUND_SERVICE permission. This is normal permission, so the system automatically grants it to the requesting app.
If an app that targets Android 9 or higher attempts to create a foreground service without requesting FOREGROUND_SERVICE, the system throws a SecurityException.
There are two different privacy enhancement one is build serial number and another is DNS Privacy
In Android 9, Build.SERIAL is always set to “UNKNOWN” to protect users’ privacy.
If your app needs to access a device’s hardware serial number, you should instead request the READ_PHONE_STATE permission, then call getSerial().
Apps targeting Android 9 should honor the private DNS APIs. In particular, apps should ensure that, if the system resolver is doing DNS-over-TLS, any built-in DNS client either uses encrypted DNS to the same hostname as the system, or is disabled in favor of the system resolver.
These framework security changes are applicable on only API 28 or higher than API 28.
isCleartextTrafficPermitted()
method returns false
by default.WebView
data directory among multiple processes. Typically, such data directories store cookies, HTTP caches, and other persistent and temporary storage related to web browsing.To continue using the Apache HTTP client, apps that target Android 9 and above can add the following to their AndroidManifest.xml
This line you need to use inside the Application
<uses-library android:name="org.apache.http.legacy" android:required="false" />
And there is much more changes. Officially you can get all those changes on Google Developer Official website
Here Few more tutorial which may help to utilise your skills.