Android Knowledge Grooming

Source: Internet
Author: User

****

Google engineers analyze Android system architecture

http://www.oschina.net/question/12_13318

Android is not a canonical or distributed version of the traditional Linux style or a series of reusable component integrations, and Android is a software block for connecting devices .

The Dalvik virtual machine only executes. dex

APK is a compressed folder

Android manifest--interface between app and Android system

&&&&

1-Android threading model and Asynctask

http://www.oschina.net/question/4873_24644

Android provides several ways to access the UI thread in other threads.

Activity.runonuithread (Runnable)

View.post (Runnable)

view.postdelayed (Runnable, long)

Hanlder

eg

New Thread ( new Runnable () {

Public void run () {

final Bitmap b = loadimagefromnetwork ();

Mimageview.post ( new Runnable () {

Mimageview.setimagebitmap (b);

});

}

}). Start ();

This method is more cumbersome

Android offers a tool class: Asynctask, more Simple

You can also use callback to make callbacks after the picture is loaded

Android Knowledge Grooming

Related 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.