Android first day

Source: Internet
Author: User

1. Build the Environment:

The initial use of ADT, but has been a variety of problems, and later use of Android Studio, is really powerful, a variety of support packages online download, really do not worry about the environment, to Google a praise!

2. Directory structure:

Src:java Code

Gen: Automatically generated, there is an R file, add any file will be automatically generated to this file, do not go to manually modify it, remember!

Assets: Not commonly used, webview loading local Web page files are placed here.

Bin: Compile the APK package, install to the phone, launch the app directly.

Libs: The third-party jar package storage location.

Res: Pictures, layouts, strings, and so on. drawable: Picture layout: Layouts Menu: Menus file

Androidmanifest.xml: Permissions, versions, components, and so on.

Project.Properties: A line of code that specifies the version of the SDK used for compilation.

  # Project Target.
  Target=android-24
android.library.reference.1=. /appcompat_v7

3.5 levels of log, easy to find errors. Verbose, debug, info, warn, error, assert.

Android first day

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.