API changes for Android L Developer Preview
In any case, the Android L Developer Preview report has been released along with javaDoc, which can be seen in a poorly-structured ZIP archive. I often review this document to see how different it is from Google I/O. Android L actually has a lot of meaningful changes.
Note:This analysis is a development preview version based on Android L. Maybe some things mentioned here will be returned to the previous version before "L" is released, become a part of Android 5.0 and do not know the name ). In addition, although this article only shows some areas of interest, it is strongly recommended that you take a good look at the actual release version.
NOTE 2:On Android, "deprecated" is not recommended.) We think there are better solutions to use. It is not guaranteed that this part will be supported in the future, but at least it can be used now.
The following section describes the version changes in the blacklist:
-
Action Bar navigation: it is not recommended for all formats. Here the Action Bar Tabs and drop-down navigation are included. I was wondering what would happen if I restricted the various operations on the Action Bar tabs?
-
Another reason is that Action Bar has been replaced by another component that is easier to operate during development. The Activity has a setActionBar () method and requires a Toolbar parameter. Like a simplified ActionBar, a Toolbar can be placed anywhere in the view structure, which is much better than an ActionBar that can only be locked at the top.
-
Activities can also be "persistent" and can be restarted. I think this is probably to extend some of the features recently released, and the side effect is to have a new understanding of the onSaveInstanceState () method, in Activity, we need to operate Bundle and a thing called PersistableBundle. Maybe this thing can save the disaster caused by system restart.
-
GetRecentTasks () and getRunningTasks () in ActivityManager are currently not recommended. a subset of the result is returned in Android L or later versions.
-
BatterryManager can now directly obtain power information, instead of registering a null type of battery_changed for ACTION_BATTERY_CHANGED.
-
The bindService () method now needs to pass in a clear Intent object. If your target sdk version is set to L or higher, we recommend that you use an implicit Intent to ensure code readability, if you are using the service, pay attention to it. According to Alex Curran, this will have an impact on IAPin-ap pruchasing code integration.
-
Now we can use the getExternalMediaDirs () method, which is similar to the getExternalFileDirs () method, but this method can be scanned by MediaStore.
-
Many new features have been added to DevicePolicyManager, allowing you to use more advanced APIs.
-
FragmentBreadCrumbs is currently not recommended. Those who use this kind of service will mourn for you.
-
In addition, a new starter is added here to help more easily find the relevant applications, but this is also related to the system configuration. If it is not set to the default starter, it will not work ).
-
MediaStore adds MediaStore. Audio. Radio, which does not have official documentation. Therefore, it is not clear about streaming media broadcast stations, traditional broadcast stations, or others.
-
TOP_LEVEL _ * is not recommended for all modes. This may also reflect the increasing number of top-level domain names.
-
On Android, there are many tools for detecting "power-saving mode". On PowerManager, use the isPowerSaveMode () method and add an ACTION_POWER_SAVE_MODE_CHANGED broadcast. As to whether it is integrated directly in the OEM or in the system framework, it is hard to say.
-
The first thing to do, such as the word "undeprecated", clearly indicates that INSTALL_NON_MARKET_APPS appears during setup. Due to security issues, it has been removed from the setup options, to global.
-
The web Settings now allow you to control the mixed content mode and whether the webview loads insecure content from a secure source.
Finally, there are still many changes in Android L, especially some major changes. But I only pay attention to this. If you are interested, read the content that is not mentioned in this article.
Http://blog.jobbole.com/73577/.