Android Learning Notes-chapter I building the development environment

Source: Internet
Author: User
<span id="Label3"></p><p><p>The first chapter of Android development environment construction</p></p> <ol class="list-paddingleft-2" style="list-style-type:decimal;"> <li><li><p>Development Tools:<span style="font-family:‘微软雅黑‘;font-size:14px;line-height:21px;background-color:rgb(255,255,255);">Adt-bundle-windows</span></p><p>Http://pan.baidu.com/s/1wIgFW</p></li></li> <li><li><p>Configuring Environment variables</p><p>D:\Program Files (x86) \android\adt-bundle-windows-x86-20131030\sdk\platform-tools</p><p><br></p><p style="text-align:center;">650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/91/wKioL1VMaimjBGSsAAG5GoielrM247.jpg "title=" Qq20150508154054.jpg "width=" 328 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:328px;height:400px; "alt = "wkiol1vmaimjbgssaag5goielrm247.jpg"/></p><p>The above is the path of the sdk\platform-tools, depending on the installation path on the PC. After you have configured the environment variables, you can enter the ADB command to Test.</p></li></li> <li><li><p>Common ABD Commands</p><p>(1) View the currently running emulator information</p><p>ADB devices</p><p>(2) Disconnect the eclipse from the emulator</p><p>ADB kill-server</p><p>(3) Restart Connection</p><p>ADB start-server</p><p>(4) copying files from the PC to the simulator</p><p>ADB push computer Path simulator path</p><p>(5) copying files from the emulator to the PC</p><p>ADB pull simulator Path computer path</p><p>(6) Install the application</p><p>ADB install-r file path</p><p>(7) Uninstall the App</p><p>ADB Uninstall Package Name</p><p>Note: The package name is a unique identity that is <span style="font-family:‘微软雅黑‘;font-size:14px;line-height:21px;background-color:rgb(255,255,255);">differentiated by the Android app in the manifest file Androidmanifest.xml under the Eclipse project. </span></p></li></li> <li><li><p><span style="font-family:‘微软雅黑‘;font-size:14px;line-height:21px;background-color:rgb(255,255,255);">Android SDK Directory structure</span></p><p><span style="font-family:‘微软雅黑‘;font-size:14px;line-height:21px;background-color:rgb(255,255,255);"></span></p></li></li> <li><li>(1) Doc: storing Android API documentation</li></li> <li><li><br></li></li> </ol><p><p>(2) platforms: Different versions of the Android system</p></p><p><p>Note: the Android system version number for each API level</p></p><p><p>API level Android Version number</p></p><p><p>9, 10 2.3</p></p><p><p>11 3.0</p></p><p><p>14 4.0</p></p><p><p>18 4.3</p></p><p><p>19 4.4</p></p><p><p>(3) sources:android Source Code. Associate the Sources folder to view the source Code.</p></p><p><p>(4) some tools for tools:android development and commissioning</p></p><p><p>(5) samples: Sample Code</p></p><p><p>(6) Platform-tools:adb.exe connect the development tools with the simulator Bridge.</p></p><p><p>5. File Structure of Android project</p></p><p><p>(1) Src: storing Java code</p></p><p><p>(2) bin: Store The APK file generated after running</p></p><p><p>(3) res: Resource folder, storing some Resources.</p></p><p><p>A. Drawable: picture resolution</p></p><p><p>LDPI 240x400</p></p><p><p>MDPI 320x480</p></p><p><p>HDPI 480x800</p></p><p><p>XHDPI 720x1280</p></p><p><p>XXHDPI 1080x1920</p></p><p><p>B. menu: menus</p></p><p><p>C. values: string, color, size, etc.</p></p><p><p>(4) gen:r file, system automatically generated, Non-modifiable.</p></p><p><p>(5) layout: Layouts File</p></p><p><p>Android Learning Notes-chapter I building the development environment</p></p></span>

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.