Android Trivia Point 20 article

Source: Internet
Author: User

Reprinted blog: http://blog.csdn.net/dengshengjin2234/article/category/1322773

1. Several layouts commonly used in Android,LinearLayout, Relativelayout, Framelayout, and GridLayout. Absolutelayout is obsolete.

2. There are three main methods of Android XML parsing, including SAX ,DOM , pull.

3. Activity starts with standard, Singletop, Singletask, and SingleInstance.

4. One of the longest short messages is about Chinese ( including punctuation), English, and a byte.

5. About memory Reclamation: The Memory recycle program is responsible for freeing up useless memory.

6.math.round (): Positive rounding, negative four five.

7. The following data types can be transmitted serializable, Charsequence, parcelable, and bundles when intent transmits data.

8. Animations in Android are categorized with Tween and Frame .

9. Exit Activity method has onStop () , throw exception forced exit and Finish ().

10. An example of the correct way to customize a style:

<resources>

<style name= "MyStyle" >

<item name= "Android:layout_width" >fill_parent</item>

</style>

</resources>

11. If you need to send text messages in an Android app, you need permissions in the Androidmanifest.xml file:

Android.permission.SEND_SMS.

12. When using the toast prompt, you can customize the display length ,toast has no focus, and toast can last for a while.

13. In a layout file, set a edittext, you can use the Android:hint settings to implement the input box default prompt content effect.

14.Android Project Engineering The following assets directory mainly places data files such as multimedia.

15. The thread destruction method is OnDestroy ().

The OnCreate () and OnStart () of the service life cycle call the OnCreate () and OnStart () methods on the first boot, or only the OnStart () method if the service is started. The OnCreate () method is not executed.

Intent the role of the interface can be achieved between the switch, can contain motion and motion data, connecting the four components of the link.

The advantages of 18.SAX parsing XML files do not need to be transferred to the entire document in advance, consuming less resources. (There's something else).

19. The method you may need to override when using menu in Android is Oncreateoptionsmenu (),

Onoptionsitemselected ().

The 20.Android Application Architecture (layer 4) is applications (core application), Application Framework (Development framework package), Libraries (System runtime or C + + core library), and Linux Kernel (Linux kernel).

Android Trivia Point 20 article

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.