安卓开发:

android-sdkIf 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 theAndroid websiteand download the SDK. Make sure you choose the Linux version.

android-sdk-download

Extract the downloaded file to your home folder. You should see a folder with the name “android-sdk-linux_86”.

Open your.bashrcfile 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 installEcplise. 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 onHelp -> Install new software

android-sdk-eclipse1

At theWork withfield, enterhttp://download.eclipse.org/releases/galileoand clickAdd.

android-sdk-eclipse2

You will see that there are several software now available for installation. Ignore them.

Next, erase away the entry in theWork Withfield and addhttps://dl-ssl.google.com/android/eclipse/. ClickAdd.

android-sdk-eclipse3

Check all the entries in the bottom pane and clickNextto install.

Once the installation is done, restart Eclipse.

Go toWindows -> 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 toWIndows -> Android SDK and AVD Manager.

android-sdk-eclipse-extra1

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 theInstall Selectedbutton.

android-sdk-eclipse-extra1

That’s it. You have install and set up Android SDK in your Ubuntu. To create a new Android project, simply go toFile -> New -> Projectand choose Android project in the Wizard window.

android-sdk-eclipse5

Taking screenshots of your Android phone

First enable the USB debug mode inSettings ->Applications->Development

android-screenshot-usb-debug

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 theToolsfolder and open theddms.batfile. When prompted, selectRUN.

android-screenshot-ddms

Highlight the entry of your phone.

android-screenshot-dalvik

Go toDevice -> Screen Capture.

android-screenshot selection

android-screenshot-window

That’s it.

更多相关文章

  1. 安卓开发环境的搭建(Eclipse+ADT+SDK+JDK的下载)
  2. android studio与VS2019的安卓开发共存问题
  3. Android Studio IDEA:基于IDEA的安卓开发环境
  4. [置顶] 安卓开发-标签总结
  5. 【android】安卓开发学习路线图
  6. 安卓开发学习之012 TextView高级应用
  7. 安卓开发36:layout对齐属性总结
  8. 14天学会安卓开发(第十三天)Android多媒体开发
  9. 安卓开发基础介绍

随机推荐

  1. android 代理上网
  2. android 获取正在运行的应用程序列表
  3. Android(安卓)仿微信滑动删除
  4. Hybrid App for Android 资源整理(初步整
  5. Android禁用键盘的所有按键
  6. android 设置状态栏颜色和字体颜色
  7. TextView垂直滚动
  8. android遍历map的六种方式
  9. Android开源项目分享
  10. [Android(安卓)Pro] ListView,GridView之