Android Lao Luo video Tutorial notes

Source: Internet
Author: User

Recently saw Lao Luo a video take note of notes!

Android Video Learning

Http://dl.dbank.com/c0y26afzer

http://pan.baidu.com/s/1mgC9C72


1. The Broastcast life cycle is when the OnReceive function is executed and released.

The broadcast recipient cannot use a dialog box to remind the user that it is best to use toast or Notificationmanager.builder to notify

Orderly broadcast Sendorderbroastcast

Static and dynamic Accept (Onresum () registration OnPause () uninstall)

Handler is responsible for accessing the message (Handler.obtain () No Message object is created (fetching messages from the message pool) don't go to New


Handler variable must be set to static otherwise a memory leak occurs

The data that is carried by the message ARG usually describes the scale and what usually describes what to do

SendMessage () Putting the message object into Message Queuing

Handle and message relationships (the message is handle processed)

Maximum of 10 message pools



The finally statement is a cleanup mechanism provided for exception handling events, typically used to close files or release other

system resources. As part of the try-catch-finally structure, there can be no finally statement, and if a finally statement exists, the finally statement is executed regardless of whether an exception occurred in the try block or if a catch statement was executed.


Android supports Internationalized language (add values-xx directory under Res directory and add Strin.xml)

Screen Adaptive (1. Create multiple LAYOUT-XX directories in the Res directory and copy XML files) such as layout-larage (large screen) There is also a mobile phone horizontal screen and vertical screen should also be adaptive (each layout to adapt to the vertical screen (for example, the phone is the default is the upright disk plus a layout-land support horizontal screen) if the plate is the opposite)


1. Screen size (layout fit) Large (5, 7 Save) Small (<5) screen

2. (Create different bitmaps) image adaptive (density) xhdpi 200*200 Ultra HD hdpi 150*150 HD mdpi 100*100 standard ldpi 75*75 Low-clear

3. Screen adjustment

4..9.png Point 9 Picture Adaptive


Try to use the relative layout (the linear layout has only one direction (nesting efficiency is low)) as far as possible with warp_content


Lower image resolution accounts for less memory


Static compression function minimizes multiple creation of objects with static (ListView GetView inside)

Large image (bitmap) compressed


On-site protection when activity is destroyed abnormally (ONSAVEXXX)


RTSP can support online playback (if the server is a streaming media server)

HTTP protocol only support video download (first download and playback, such as 20M minutes 5 each paragraph of 4M play the first paragraph loaded the second paragraph)


Videoview Controls (Android built-in decoder playback) are all in the 3rd party video playback

1. Using Videoview control video playback

2. Using service combination


Android Lao Luo video Tutorial notes

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.