安卓系统外文翻译
《安卓系统外文翻译》由会员分享,可在线阅读,更多相关《安卓系统外文翻译(7页珍藏版)》请在毕设资料网上搜索。
1、 1 lder namedsrc. This is the source code folder for the given sample application. Youcan use this to view, edit,and recompile the code for any of the applications. Takeadvantage of this source code to learn some tricks and tips about the Android platform. Android Tools The Android SDK supplies deve
2、lopers with a number of powerful and useful tools.Throughoutthis book, you will use only a handful of them directly. This section takes aquick look at just afew of these tools, which will be covered in much more depth in thefollowing chapters, as youdive into command-line development. NOTE For more
3、detailed information about the other tools included in the Android SDK,consult the Android doc files. emulator.exe Arguably one of the most important tools included in the Android SDK is emulator.exe.emulator.exe launches the Android Emulator. The Android Emulator is used toyoure yourapplications in
4、 a pseudo-Android environment. Given that, as of the writing of this book,therewere no hardware devices yet released for the Android platform, emulator.exe isgoing to be your only means to test applications on a “native” platform. You can run emulator.exe from the command line or execute it from wit
5、hin Eclipse.In this book, youll usually let Eclipse launch the Android Emulator environment for you.However, in theinterest of giving you all the information you need to program with theAndroid SDK outside of Eclipse, Chapter 6 covers command-line usage of emulator.exewhen you create your Hello Worl
6、d! applications. When using the Android Emulator to test your applications, you have two choices fornavigatingthe user interface. First, the emulator comes with usable buttons, as shown inFigure 4-1. You can use these buttons to navigate Android and any applications that youdevelop for the platform.
7、 TIP The Power On/Off, Volume Up, and Volume Down buttons are slightly hidden to thesides of the virtual device. They identify themselves when you hover the mouse pointerover them.Given that many higher-end phones now include a touch screen, the second inputchoice you have when using the emulator is
8、 a simulated touch screen. You use yourmouse as a stylus. The objects on the emulators screen can be interacted with usingthe mouse. adb.exe Another tool that will become very useful to you when you are using command-lineprogrammingis Android Debug Bridge or adb (adb.exe). This tool allows you to is
9、suecommands to the Emulator.exe tool. When you are working in a command-lineenvironment, the adb tool allows you to do the following: Start and stop the server Install and uninstall applications Move files to and from the emulator MKSDCARD.exe MKSDCARD.exe is a very useful tool if you are testing an
10、 application that will needto read orwrite files to or from an SD Memory Card inserted into the mobile device.MKSDCARD.execreates a small partition drive on your drive that will hold and retainthe 2 test files. The emulatorwill treat this partition like an SD Memory Card. DX.exe DX.exe is the compil
11、er of the Android SDK. When run against your Java files, DX.exewill createfiles with .dex extensionsDalvik executable format. These files are in thecorrect format to beunderstood by, and run on, an Android device. NOTE Android executable files are called Dalvik executable files as a reference to the
12、 Dalvikvirtual machine that Android used to run all applications. The Dalvik virtual machineruns each application in its own thread with the same priority as core Androidapplications. activityCreator(.bat or .pn) activityCreator is a simple command-line tool that is used to set up a basic developmen
13、tenvironment. When run from the command line, activityCreator will set up the shell filesneeded to create a basic Android application. Having these shell files is especially usefulif you are not using Eclipse. The Android plugin for Eclipse sets up these shell files foryou by calling the activityCre
14、ator when you create a new project.Depending on what type of environment you are running, you will see theactivityCreator represented by a different type of script file. If you are in a Windowsenvironment, this will be a .bat file; otherwise it will be a python (.pn) script. Yousimply execute the sc
15、ript, which in turn calls the actual activityCreator process withthe correct parameters. APIs The API, or application programming interface, is the core of the Android SDK. An APIis a collection of functions, methods, properties, classes, and libraries that is used byapplication developers to create
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 系统 外文 翻译
