Eclipse to develop Android primer learning

Source: Internet
Author: User

1.device window

View Android runtime windows and DDMS content consistent

2.android.bat

Run ADB operations under ADB path to enable the re-connection of Android systems

adb kill-server
ADB start-server

You can also click in the Device window

3.source overriding the parent class method

Override/implement method overriding the shortcut entry for the parent class methods

4.eclipse self-help tips

Window > Preferences > Java > Editor-content Assist > Auto activation triggers for Java

The code sets the following hints:. ABCDEFGHIJKLMNOPQRSTUVWXYZ (,

Window > Preferences > XML > XML Files > Editor > Content Assist > Auto activation > Prompt when thes e characters is inserted

The XML sets the following hint: <=:.abcdefghijklmnopqrstuvwxyz (, <=:.ABCDEFGHIJKLMNOPQRSTUVWXYZ (,

5. There are three steps to inserting a new activity:
A. Create a new Activity program code, with "New.class" as an example
B. Adding a description of the new activity in Androidmanifest.xml
C. Call to start new activity in the original activity

6. Recompile

Project > Clean

7.R file

Rewrite import Android. R path, fill in the path according to the local directory

8.mainfest.xml

<intent-filter > Start-up entrance

Android:name= " bind class ground path or . * "

9.logcat Query Run Results


Android Four components:

Activity (window)

Service (services, divided into local and remote services)

Broadcast receiver (asynchronous receive broadcast intent, divided into normal broadcast and orderly broadcast, to achieve interprocess communication)

Content Provider (data type query, Android.provider)

Important Components:

Intent Interactive messages (four components common)

Bundle data


Android SDK API Reference:

http://www.android-doc.com/

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Eclipse to develop Android primer learning

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.