Android Development Notes-2, androidnotes-2

Source: Internet
Author: User

Android Development Notes-2, androidnotes-2

Summary: SDK, ADB, Active, Intents and Tasks

-The Android SDK is made of mostly off-the-shelf components, plus some purpose-built components. in container cases, deployments, plug-ins, and extensions adapt these components to Android. the Android SDK is a study in the efficient development of a modern and complete SDK.

-Adb is a program that enables you to control both emulators and devices, and to run a shell in order to execute commands in the environment of an emulator or device.

-The Dalvik Debug Monitor Server (DDMS) is a traffic ctor between the single port that Eclipse (and other Java debuggers) looks for to connect to a Java Virtual Machine
(JVM) and the several ports that exist for each Android device or virtual device, and for each instance of the Dalvik virtual machine (VM) on each device.


-Android introduces a richer and more complex approach by supporting multiple application entry points. android programs shoshould have CT the system to start them in different places, depending on where the user is coming from and what she wants to do next.

-An Android activity is both a unit of user interaction-typically filling the whole screen of an Android mobile device-and a unit of execution. when you make an interactive Android program, you start by subclassing the Activity class.

-How, then does one activity invoke another, and pass information about what the user wants to do? The unit of communication is the Intent class. An Intent represents
Abstract description of a function that one activity requires another activity to perform

public class TestActivity extends Activity {/** Called when the activity is first created. */@Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main);}}
-When the system starts this activity it callthe constructor for TestActivity, a subclass of Activity, and then callits onCreate method. this causes the view hierarchy described in the main. xml file to load and display. the onCreate method kicks off the life cycle of the Activity

-Each activity in an Android application is largely separate from other activities

-Applications describe an Intent that they want to execute and ask the system to find one that matches



Next: Android Component

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.