Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 436 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
436
Dung lượng
8,85 MB
Nội dung
[...]... Development Kit) The Android SDK (Software Development Kit) The Android NDK (Native Development Kit) An IDE (Integrated Development Environment): Eclipse Android, and more specifically Android NDK compilation system is heavily based on Linux So we also need to set up some utilities by default, and we need to install one environment that supports them: Cygwin (until NDK R 7) This topic is covered... Android SDK and NDK on Windows 1 Open your Web browser and go to http://developer .android. com/sdk This web page lists all available SDKs, one for each platform 2 Download Android SDK for Windows, packaged as an Exe installer 3 Then, go to http://developer .android. com/sdk /ndk and download the Android NDK (not SDK !) for Windows, packaged as a ZIP archive this time 4 Execute Android SDK installer Select... into its final location (for example, C: \Android\ android- ndk) Again, avoid leaving any space in the installation path (or some problems could be encountered with Make) To easily access Android utilities from the command line, let s define the environment variables: 11 Open the Environment Variables system window, as we did in the previous part Inside the System variables list, insert the ANDROID_ SDK... this case, Android SDK and AVD manager provide a Settings section where you can specify your proxy settings This is the end of the section dedicated to Mac OS X setup If you are not a Linux user, you can jump to the Setting up Eclipse development environment section Setting up Linux Although Linux is more naturally suited for Android development, as the Android toolchain is Linux-based, some setup is... paths -w: To convert Unix paths to Windows paths -p: To convert a list of paths (separated by ; on Windows and : on Unix) Still at step 17, you may have some difficulties when editing bash_profile: some weird square characters may appear and the entire text is on one very long line! This is because it is encoded using Unix encoding So use a Unix compatible file editor (such as Eclipse, PSPad,... /Developer/AndroidSDK and /Developer/AndroidNDK) 5 Let s declare these two directories as environment variables From now on, we will refer to these directories as $ANDROID_ SDK and $ANDROID_ NDK throughout this book Assuming you use the default Bash command-line shell, create or edit your profile file (be careful, this is a hidden file !) in your home directory and add the following variables: export ANDROID_ SDK=” . With Android, ones has to deal with mulple screen resoluons, various CPU and GPU speed or capabilies, memory limitaons, and so on, which are not topics specic to this Linux-based system,. buers to display meshes. Chapter 7, Playing Sound with OpenSL ES, adds a musical dimension to nave applicaons with OpenSL ES, a unique feature provided only by the Android NDK. We will also. compilaon system is heavily based on Linux. So we also need to set up some ulies by default, and we need to install one environment that supports them: Cygwin (unl NDK R 7). This topic is covered