Learning Android (1)

Source: Internet
Author: User

This article from: http://heweiya.javaeye.com/blog/521598 so the link and download can go to this link

 

1) download the SDK,

1.1) download android-sdk_r3-windows,

1.2) Then decompress and put it in a directory such as: C:/android-sdk_r3-windows

1.3) execute the file: SDK setup.exe in the directory above (which of the robot icons)

Note: In general, the failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xmlwill appear, so you should modify it as follows:

A) Modify available packages and click "add site..." to add: packages.

B) modify the proxy configuration: Set HTTP Proxy Server: 10.159.192.62, HTTP Proxy port: 8080, and select the following tabs: Force https //..... using HTTP ..., ask before restaring ADB.

C) Select installed package, which includes sdk1.1, 1.5, 1.6, 2.0 and multiple versions of APIs and USB driver package.

So far, all sdks have been installed. Call. I don't know why Chinese technical websites can save you more time by following the above steps. I am here 100%.

2), install Google for our eclipse development plug-in (ADT), address: https://dl-ssl.google.com/android/eclipse/

3) understand the basic stages of development

You can check Wu's technical website and watch a few videos. Several Basic concepts have been clarified. As a Java developer, code is used.

A) video download connection.

The first part of the video is about Android, and the second part is about setting up an android development environment.

The second part of the video, the third part is the first Android application, and the fourth part is the basis of the android program.

The third part of the video is intent and activity, and activity lifecycle.

The fourth part of the video is about using service, and the eighth part is about content provider.

PPT document

B) several concepts in Development: (simple understanding)

1. Activity, user interface, is considered a user's interactive interface,
2. Intent and intent filter, jump between pages, including an action and a response. Intent filter describes what to do after a jump.
3. Broadcast intent extends er, which can be used to handle external tasks.
4. Service, a piece of code running in the background. It can run in its own process, or in the context of other application processes.

C) Program Composition

 

4), learning sample

Open C:/Android-SDK-Windows/platforms/Android-XX/samples/and you can see the code in it. For more information, see,

 

I learned this today and pay attention to it during debugging. If you have already started the simulator (the first startup is slow), you do not need to restart the later program. You can simply run or debug it.

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.