In-depth analysis of the Android SDK version

Source: Internet
Author: User

After all, Android is an open software system that requires high hardware infrastructure to provide better user experience with touch screens, everything is against the general operation method. It is cool, but it takes time to test.

Another huge change in the new Android SDK is the massive API changes. This change is painful for old projects to be transplanted, but it is definitely a good thing in the long run. The most significant change in the API is the change in naming, and many unreasonable names are changed. Some unclear APIs are more specific. For example, some SQLite-related APIs are attached with the SQLite prefix;

Some methods that have been marked as expired in the document have been permanently abolished this time, such as the query method of ContentProvider. Some inconsistent APIs have also been adjusted, for example, the position and index in ListView are unified into the position.

Solved this problem that I had a headache. Some naming styles were unified. For example, the URI adopts a uniform Uri, And the SDK uses a uniform Id. In other aspects, AndroidManifest. some items in xml are also unified and can be easily understood.

In short, there are still many such changes, and a large number of APIs are clearer and easier to understand. This is also the result of Google testing by all programmers who are tempted by the world. Some classes are restructured to separate and Expand functions. The most typical is ContentURI, which is split into the ContentUris function class and the Uri entity class, which provides better guidance for programmers;

Another typical change is Cursor, which adds an extras interface to transmit additional data. This is a timely and messy rain, this makes it easy to do a lot of things. Another is that the Notification is split. The Notification only refers to the icon on the top of the home page, and the temporary pop-up text or views are separated into Toasts, this pair of tough melons were finally able to develop separately.

A special change is Alerts, which adopts the new Builder chain construction method instead of the constructor construction method. The constructor structure is more flexible. In contrast, Notification has a longer constructor, which is difficult to use. In my opinion, this is not a good change.

In addition, Android also adds some practical classes. The newly added ExpandableListView is a level-2 tree AdapterListView, which is a very practical view control. I think this is the result of a large number of developers. I personally wanted to customize this wheel, and then implemented it in the first-level simulated second-level mode. This is good and easy to understand.

Another revolutionary thing is the Search Manager interface, which is a hooker interface. Android provides a cool Search interface and interface for your Activity. See the Sample ), by implementing Hooker, you can achieve unified Search, which has a great impact on many people who do the same Search as me.

In the short term, transplantation is very painful. In the long term, this is a very Google-like change, which has a great boost to Search. Another change that compares Google's taste is to rename XXMP to GTalk, and Google's ambition is exhausted.

  • Google releases Beta Android SDK
  • Android SDK 0.9 is available soon
  • The new Android SDK makes a difference. Google is angry.
  • Google Android SDK 1.6 released
  • Detailed description of Android SDK design goals

In addition to these face changes, the Android SDK has made significant changes to the plug-in. It supports multiple devices and combines the device view and Process view. It has added a new traceview tool, this is a visualized log analysis tool that makes the Android log system more powerful and the debugging time is expected to be further reduced.

All these observations are based on my observations over the past two days. They are just blind people. For more information, see here. Here, it is a pity that most Android SDK documents are not keeping up with you. If you want to learn more, I hope you can read the Android SDK directly, do not read the examples in the document.

After these changes, Android is becoming more and more perfect, and Google's investment in the Grand Prix does not seem to be white. This is also a better opportunity for all Android users. Whoever can adapt to the new SDK can take a better place.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.