安卓开发
2011-06-03 15:44
295 查看
安卓开发:
If you are an Android developer, looking to root your Android phone, or just a blogger who wants to take screenshots of your latest Nexus One phone, you will need to install Android SDK in your computer. I know that it is kind of troublesome to download/install the SDK just to take screenshots in your phone, but luckily it can be done easily. This article will show you the way to install Android SDK and take screenshots in Ubuntu 9.10 Karmic.
First, go to the Android website and download the SDK. Make sure you choose the Linux version.
Extract the downloaded file to your home folder. You should see a folder with the name “android-sdk-linux_86”.
Open your .bashrc file and add the filepath to the end of the file. In a terminal, type the following:
Add the following line to the end of the file:
Replace <your_sdk_dir> with the actual filepath of the SDK folder. If you have extracted the file to your home folder, it should be something like /home/your_username/android_sdk_linux_86/
Next you need to install Ecplise. For Ubuntu 9.10 users, the latest version of Eclipse (Eclipse Classic 3.5.1) is already included in the repository, so you can easily install via the command:
Once the installation is completed, open Eclipse (Application -> Programming -> Eclipse)
On the menubar, click on Help -> Install new software
At the Work with field, enter http://download.eclipse.org/releases/galileo and click Add.
You will see that there are several software now available for installation. Ignore them.
Next, erase away the entry in the Work With field and add https://dl-ssl.google.com/android/eclipse/. Click Add.
Check all the entries in the bottom pane and click Next to install.
Once the installation is done, restart Eclipse.
Go to Windows -> Preferences. On the left, select the Android entry.
Enter the Android filepath in the SDK location field. Click Apply follow by OK.
Update: The latest version of Android SDK requires you to install the SDK API before you can create a new Android project.
Go to WIndows -> Android SDK and AVD Manager.
On the left pane, select the “Available Packages” entry. On the right, place a check on the version of the Android SDK that you want to install. Once done, click the Install Selected button.
That’s it. You have install and set up Android SDK in your Ubuntu. To create a new Android project, simply go to File -> New -> Project and choose Android project in the Wizard window.
Connect your Android phone to your computer via the USB cable.
Make sure that Eclipse is closed, navigate to your Android SDK folder. Go to the Tools folder and open the ddms.bat file. When prompted, select RUN.
Highlight the entry of your phone.
Go to Device -> Screen Capture.
That’s it.
If you are an Android developer, looking to root your Android phone, or just a blogger who wants to take screenshots of your latest Nexus One phone, you will need to install Android SDK in your computer. I know that it is kind of troublesome to download/install the SDK just to take screenshots in your phone, but luckily it can be done easily. This article will show you the way to install Android SDK and take screenshots in Ubuntu 9.10 Karmic.
First, go to the Android website and download the SDK. Make sure you choose the Linux version.
Extract the downloaded file to your home folder. You should see a folder with the name “android-sdk-linux_86”.
Open your .bashrc file and add the filepath to the end of the file. In a terminal, type the following:
gedit ~/.bashrc
Add the following line to the end of the file:
export PATH=${PATH}:<your_sdk_dir>/tools
Replace <your_sdk_dir> with the actual filepath of the SDK folder. If you have extracted the file to your home folder, it should be something like /home/your_username/android_sdk_linux_86/
Next you need to install Ecplise. For Ubuntu 9.10 users, the latest version of Eclipse (Eclipse Classic 3.5.1) is already included in the repository, so you can easily install via the command:
sudo apt-get install eclipse
Once the installation is completed, open Eclipse (Application -> Programming -> Eclipse)
On the menubar, click on Help -> Install new software
At the Work with field, enter http://download.eclipse.org/releases/galileo and click Add.
You will see that there are several software now available for installation. Ignore them.
Next, erase away the entry in the Work With field and add https://dl-ssl.google.com/android/eclipse/. Click Add.
Check all the entries in the bottom pane and click Next to install.
Once the installation is done, restart Eclipse.
Go to Windows -> Preferences. On the left, select the Android entry.
Enter the Android filepath in the SDK location field. Click Apply follow by OK.
Update: The latest version of Android SDK requires you to install the SDK API before you can create a new Android project.
Go to WIndows -> Android SDK and AVD Manager.
On the left pane, select the “Available Packages” entry. On the right, place a check on the version of the Android SDK that you want to install. Once done, click the Install Selected button.
That’s it. You have install and set up Android SDK in your Ubuntu. To create a new Android project, simply go to File -> New -> Project and choose Android project in the Wizard window.
Taking screenshots of your Android phone
First enable the USB debug mode in Settings ->Applications->DevelopmentConnect your Android phone to your computer via the USB cable.
Make sure that Eclipse is closed, navigate to your Android SDK folder. Go to the Tools folder and open the ddms.bat file. When prompted, select RUN.
Highlight the entry of your phone.
Go to Device -> Screen Capture.
That’s it.
相关文章推荐
- [安卓开发]在有物理按键的设备上依旧在Action Bar中显示虚拟菜单键
- 安卓TV开发(十) 智能电视开发之在线视频直播
- 安卓开发之Camera
- 安卓开发学习——第八天
- 安卓应用程序插件化开发框架 -AAP Framework
- 14天学会安卓开发(第八天)SQLite数据库技术
- 安卓-开发常见问题之R cannot be resolved to a variable
- 安卓开发之mqtt协议实例代码
- 【android】怎么入门安卓开发
- 安卓开发之webview长按复制粘贴功能
- 安卓开发之如何利用剪切板传递复杂数据
- 程序员带你学习安卓开发,十天快速入门-基础知识(四)
- 安卓开发37:自定义的HorizontalScrollView类,使其pageScroll的时候焦点不选中
- 安卓手机放盗开发
- 安卓开发颜色代码
- 在安卓开发环境下写一个main测试类运行报错ShouldNotReachHere
- 关于安卓开发选择android 4.2.2(API 17)应用无法打开的解决办法
- 面试安卓游戏开发岗位
- Android(安卓)系统USB-OTG-HID外设通讯开发
- 安卓开发之性能优化