菜单
  
    英文翻译资料A:英文原文2.1. Setting Up Your Development Environment Android applications, like most mobile phone applications, are developed in a host-target development environment. In other words, you develop your application on a host computer (where resources are abundant) and download it to a target mobile phone for testing and ultimate use. Applications can be tested and debugged either on a real Android device or on an emulator. For most developers, using an emulator is easier for initial development and debugging, followed by final testing on real devices.32406
    To write your own Android mobile phone applications, you'll first need to collect the required tools and set up an appropriate development environment on your PC or Mac. In this chapter we'll collect the tools you need, download them and install them on your computer, and write a sample application that will let you get the feel of writing and running Android applications on an emulator. Linux, Windows, and OS X are all supported development environments, and we'll show you how to install the latest set of tools on each. Then, we'll show you any configuration you need to do after installing the tools (setting PATH environment variables and the like), again for each of the three operating systems. Finally, we'll write a short little "Hello, Android" application that demonstrates what needs to be done in order to get a generic application running.
    The Android SDK supports several different integrated development environments (IDEs). For this book we will focus on Eclipse because it is the IDE that is best integrated with the SDK, and, hey, it's free. No matter which operating system you are using, you will need essentially the same set of tools:
    •    The Eclipse IDE
    •    Sun's Java Development Kit (JDK)
    •    The Android Software Developer's Kit (SDK)
    •    The Android Developer Tool (ADT), a special Eclipse plug-in
    Since you're probably going to develop on only one of the host operating systems, skip to the appropriate section that pertains to your selected operating system.
    2.1.1. Creating an Android Development Environment
    The Android Software Development Kit supports Windows (XP and Vista), Linux (tested on Ubuntu Dapper Drake, but any recent Linux distro should work), and Mac OS X (10.4.8 or later, Intel platform only) as host development environments. Installation of the SDK is substantially the same for any of the operating systems, and most of this description applies equally to all of them. Where the procedure differs, we will clearly tell you what to do for each environment:
    1.    Install JDK: The Android SDK requires JDK version 5 or version 6. If you already have one of those installed, skip to the next step. In particular, Mac OS X comes with the JDK version 5 already installed, and many Linux distributions include a JDK. If the JDK is not installed, go to and you'll see a list of Java products to download. You want JDK 6 Update n for your operating system, where n is 6 at the time of this writing.

    Windows (XP and Vista)
    o    Select the distribution for "Windows Offline Installation, Multi-language."
    o    Read, review, and accept Sun's license for the JDK. (The license has become very permissive, but if you have a problem with it, alternative free JDKs exist.)
    o    Once the download is complete, a dialog box will ask you whether you want to run the downloaded executable. When you select "Run," the Windows Installer will start up and lead you through a dialog to install the JDK on your PC.

    Linux
    o    Select the distribution for "Linux self-extracting file."
    o    Read, review, and accept Sun's license for the JDK. (The license has become very permissive, but if you have a problem with it, alternative free JDKs exist.)
  1. 上一篇:供销存管理英文文献和中文翻译
  2. 下一篇:JSP技术英文文献及参考文献
  1. 软件开发项目的企业管理英文文献和中文翻译

  2. 产品设计与环境英文文献和中文翻译

  3. Android通知的设计英文文献和中文翻译

  4. Linux上C的开发英文文献和中文翻译

  5. 应用程序的设计和开发英文文献和中文翻译

  6. 数据库开发英文文献和中文翻译

  7. Android应用英文文献和中文翻译

  8. 电站锅炉暖风器设计任务书

  9. 酸性水汽提装置总汽提塔设计+CAD图纸

  10. 当代大学生慈善意识研究+文献综述

  11. 十二层带中心支撑钢结构...

  12. 大众媒体对公共政策制定的影响

  13. 河岸冲刷和泥沙淤积的监测国内外研究现状

  14. java+mysql车辆管理系统的设计+源代码

  15. 乳业同业并购式全产业链...

  16. 杂拟谷盗体内共生菌沃尔...

  17. 中考体育项目与体育教学合理结合的研究

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回