Android Learning Note One

Source: Internet
Author: User
<span id="Label3"></p><p><p>Android Development Environment (eclipse-based) Installation:</p></p><p><p>From http://www.androiddevtools.cn/you can download all the tools you need, the most basic of which is <span style="color: #ff0000;">SDK tools</span>, including SDK Manager.exe (you can download or update the SDK and other tools), AVD Manager.exe (create android emulator for easy testing). <span style="color: #ff0000;">SDK</span> (software Development Kit) is the development kit used to develop Android and requires a different SDK for different versions of ANDROID.</p></p><p><p>Some questions: there is only one SDK version in ①sdk manager. You can choose to download the SDK offline or download it from http://blog.csdn.net/ultrapro/article/details/35555725.</p></p><p><p>② can not be updated, due to wall reasons can not be connected to foreign sites, Baidu search, various Solutions.</p></p><p><p></p></p><p><p>Developing Android in Eclipse requires the use of an <span style="color: #ff0000;">ADT</span> plugin that can be used to manage SDK Tools.</p></p><p><p>If you feel trouble, you can also use the packaged tools <span style="color: #ff0000;">adt-bundle-windows</span>. Includes: SDK manager,eclipse (adt plugin installed), SDK Folder.</p></p><p><p></p></p><p><p>There is an Android debug tool on Eclipse: DDMS. In the DDMS interface, you can see various information about the connection status and log Information. Reference: http://www.jb51.net/article/36668.htm</p></p><p><p>Another common debugging tool is adb (Android debug briger), refer to: http://mobile.163.com/09/1105/06/5NBAG1OQ00112K88.html.</p></p><p><p></p></p><p><p>To start an Android project, some configuration is required, see http://blog.csdn.net/jianghuiquan/article/details/8232253.</p></p><p><p>AVD is a virtual machine running Android program, equivalent to a real Android device, creating process reference: http://jingyan.baidu.com/article/a681b0ded7e7573b1943465b.html, Http://jingyan.baidu.com/album/5553fa82e3acc565a23934ca.html.</p></p><p><p>The Android project structure is created automatically by Eclipse and is described in detail in http://www.cnblogs.com/hnrainll/archive/2011/10/24/2222467.html. But there are a few things to note:</p></p><p><p>①r.java files are automatically generated and maintained by the system and cannot be edited manually. If the clean project causes the file to disappear because there is an XML configuration error, the system does not build properly, the problem needs to be resolved before the clean project can be generated.</p></p><p><p>②android version problem is too messy, can cause errors, an error: http://jingyan.baidu.com/article/3ea51489e04eb852e61bbaa4.html. If this is still not possible, it may be that the configuration file used Under/res (that is, values-vxx,xx refers to the API version number, there are Multiple) is higher than the version used by the compiler, the compiler cannot find the appropriate reference file, so you need to improve the compiler Version.</p></p><p><p>!!! Here is a description of the configuration in the project and version: (you need to make a selection when creating a Project)</p></p><p><p>1, minimum operating required SDK version: Androidmanifest.xml in Android:minsdkversion.</p></p><p><p>2, the target SDK version: should be the best running version, androidmanifest.xml in Android:targetsdkversion.</p></p><p><p>3. Compiled version:<span class="ask-title ">the target value in Project.properties. </span></p></p><p><p><span class="ask-title ">4, running Version: is the version of Avd/mobile Phone.</span></p></p><p><p><span class="ask-title ">Run an Android project, automatically package and install it on a virtual machine, or you can view it through the debug Tool.</span></p></p><p><p></p></p><p><p><span class="ask-title ">A simple project can have only one page, corresponding to an activity, the page is configured by an XML configuration file under res/layout, mainly configuring the layout of various Controls.</span></p></p><p><p><span class="ask-title ">There are five layouts in android, one of which is obsolete, refer To: http://liangruijun.blog.51cto.com/3061169/632532/.</span></p></p><p><p><span class="ask-title ">A problem with layout is the unit that represents the length, refer To: http://blog.csdn.net/yao_guet/article/details/6288279.</span></p></p><p><p></p></p><p><p><span class="ask-title ">Tests for Android Projects:</span></p></p><p><p><span class="ask-title ">1. Simulating junit Unit testing: because the Android API does not provide a reflective interface, it cannot be tested directly with JUnit (which also means that JUnit is required to use reflection), but can be simulated using android-specific test METHODS.</span></p></p><p><p><span class="ask-title ">Reference: Http://mobile.51cto.com/android-229614.htm.</span></p></p><p><p><span class="ask-title ">2. The Android SDK comes with a monkey test tool, which can be easily tested for STRESS.</span></p></p><p><p><span class="ask-title ">Reference: Http://www.jb51.net/article/48557.htm.</span></p></p><p><p>Android Learning Note One</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.