Samsung Galaxy with Android SDK on Ubuntu

When new Ubuntu Karmic came out I decided to install it from scratch instead of upgrading from Jaunty. Id didn’t take much time to migrate all my data and necessary software. However Android SDK made me some troubles as I forgot all the tricks I had to do to make it working and since I had to follow the same path again I decided to write it down in case me or anyone alse need it again.
Let’s start from the beginning:

  • download Linux version of SDK from
  • unpack it to a folder of your choice
  • launch android program from android-sdk-linux_86/tools subdirectory; make sure you’re using Sun Java virtual machine, if not then I suggest to:
    • install Sun JDK if you don’t have one yet:

      sudo apt-get install java-6-sun

    • setup command line environment and run android tool:

      export JAVA_HOME=/usr/lib/jvm/java-6-sun
      export PATH=$JAVA_HOME/jre/bin:$PATH

  • you may need to select Force https://… sources to be fetched using http://…” option on the Settings page in case of errors when downloading packages list or packages
  • on the Available Packages page select and install packages you need
  • because of the bug in adb affecting Samsung Galaxy users, replace /tools/adb program with patched one
  • create /etc/udev/rules.d/51-samsung-galaxy.rule file with the following content:

    SUBSYSTEM==”usb”, SYSFS{idVendor}==”04e8″, MODE=”0666″

  • reload udev rules:

    sudo /etc/init.d/udev reload

After all that you should be able to connect to your Samsung Galaxy with adb:

~/dev/android-sdk-linux_86/tools$ ./adb devices
List of devices attached
I7500fIf0cVtIYi device

or with ddms (Dalvik Debug Monitor, it also may not work with non-Sun Java) :


ADB On Linux -> Ubuntu

1. Plug-in your device then exec command ‘lsusb’ then you will see the list of current usb devices

Bus 003 Device 023: ID 18d1:d00d

We will see a device is appeared when it plug-in and disappeared when it plug-out. That device is we wanted and take my environment as an example it is located at line 1, “Bus 003 Device 023: ID 18d1:d00d”, without device provider.

2. Login as root and create this file: /etc/udev/rules.d/50-android.rules

For Gusty/Hardy, edit the file to read:

SUBSYSTEM==”usb”, SYSFS(idVendor)==”18d1“, MODE=”0666″

For Dapper, edit the file to read:

SUBSYSTEM==”usb_device”, SYSFS(idVendor)==”18d1“, MODE=”0666″

Fix for ADB in Ubuntu 9.10 (32bit)

I figured I would post this fix just in case anyone was having problems w/ adb in Ubuntu like I was having. I am no Linux Guru, if there is a better way of fixing this problem let me know

After Rooting the phone and installing Android SDK, when trying to run adb I would get this:

$ adb devices
List of devices attached
???????????? no permissions

I fixed this by:

sudo gedit /etc/udev/rules.d/10-motorola-droid.rules
In the blank area copy and paste this, inserting your user name in place of :
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct} =="41db", MODE="0600", OWNER=""
Save and Exit.

Restart the udev by:
sudo service udev restart
Restart adb:
adb kill-server
adb start-server
You should see the message:
* daemon not running. starting it now *
* daemon started successfully *

Now when you adb devices your phone should show.


Android Emulator On Ubuntu

When Google announced and released Android, back in October 2008, everyone knew that it would become the best operating system for mobile devices. Not only is Android open source, but it also comes with a Software Development Kit, which offers the necessary APIs and utilities for developers to easily build powerful applications for Android-powered mobile devices. The following tutorial was created especially for those of you who want to test the Android platform and install various applications, on the popular Ubuntu operating system. OK, so let's get started... shall we?

Grab the Android SDK from Softpedia and save the file on your home folder.

Editor's note: The tutorial was rewritten for the new Android 2.0 or later, which provides a graphical user interface to setup a virtual device and the SD card. This makes everything a lot easier. No more command-line madness!

Step 1 - Installing the requirements

Until the download is over, make sure that you have Java installed and the 32-bit libraries (for the x86_64 users ONLY). If you don't have Java (or the 32-bit libraries), go to System -> Administration -> Synaptic Package Manager...

Review image for openjdk and double-click on the openjdk-6-jre entry...

Review image

...then, search for ia32-libs (ONLY if you are on a x86_64 machine), and double-click on the ia32-libs entry...

Review image

Now, click the "Apply" button to install the packages. Wait for the packages to be installed and close Synaptic when the process is finished.

Step 2 - Android Setup

When the Android SDK download is over, right-click on the file and choose the "Extract Here..." option...

Review image

Enter the extracted folder, then enter the tools folder and double click the android file. Click on the "Run" button when you will be asked what you want to do, and the Android SDK and AVD Manager interface will appear...

Review image

Go to the "Settings" section and make sure you check the "Force https://..." box. Click the "Save & Apply" button....

Review image

Now go to the "Installed Packages" section and click the "Update All" button. A window will appear with all the available updates. Click the "Install Accepted" button...

Review image

...and wait for the packages to be downloaded and installed. It will take a while if you have a slow bandwidth, so go see a movie or something until it finishes...

Review image

Close the update window when it's done and you will see all the installed SDKs in the "Installed Packages" section.

And now, let's create the virtual device. Go to the "Virtual Device" section and click the "New" button. In the new window do the following:

- put a name to the device;
- select a target (Android system);
- put the size for the SD Card;
- add the hardware you want have in the emulator.

It should look something like this...

Review image

Click the "Create AVD" button when you're done setting up the virtual device and wait for it to finish. It takes about 1 minute, and you'll be notified by a pop-up...

Review image

Note: In the above setup, we've created a virtual device for Android 2.0.1 with a 2 GB SD card and the following hardware components: SD Card, GPS, Accelerometer, Track-ball and touch-screen.

Now click the "Start" button, and the "Launch" button from the next dialog, and the emulator will start...

Review image

Review image

To make things a lot simpler let's create a desktop shortcut, so you won't have to open the terminal every time and type some command, in order to start the Android emulator. Therefore, right-click on your desktop and choose the "Create Launcher..." option...

Review image

In the Create Launcher window, type "Android Emulator" (without quotes) in the Name field, and paste the below line in the Command field. Optionally, you can also put a nice icon if you click the icon button on the left...

/home/YOURUSERNAME/android-sdk-linux_86/tools/emulator @softpedia

Review image

Note: Please replace YOURUSERNAME and the name of the Android Virtual Device (softpedia in our case) with your USERNAME and the name you gave to the virtual device. DO NOT REMOVE the @ sign.

Step 3 - Run applications in Android

All you have to do now is double-click that desktop shortcut you've just created. The Android emulator will start. Wait for the operating system to load...

Review image

When the Android operating system has loaded, you can install and test applications. If you are used with the Android platform, you already know how to do that, but if this is your first time... follow the next instructions.

Review image
Android 1.1

Review image
Android 1.5

Click the Browser icon, wait for the browser to load and click Menu -> Go to URL. Enter the address from where you can download an Android application with the apk extension. For example, we've easily installed Android's Fortune from Launchpad...

Review  image

Review  image

Review  image

Review  image

Review  image

Review  image

Review  image

...all you have to do is follow the on-screen instructions!

Have fun, and do not hesitate to comment if you want to know more about Android, or if you're stuck somewhere in the tutorial.


Documents To Go Full

Microsoft® Word, Excel®, PowerPoint® and Adobe® PDF files on your Android-powered Smartphone

Whether you’re an organization looking to mobilize your sales professionals or an individual looking to increase personal productivity, leaving your office or laptop behind does not have to mean leaving your crucial files and work behind.

Now you can get your work done no matter where you are by using Documents To Go to view, edit and createMicrosoft Word, Excel and PowerPoint files as well as view Adobe PDF files on your Android-powered smartphone. And since it is full featured yet easy to use,Documents To Go is one mobile office suite that makes good business sense.

Key Features

  • Supports latest Microsoft Office & Adobe formats (doc, docx, xls, xlsx, ppt, pptx & pdf)
  • Word To Go supports rich formatting including bold, italics, underline, font color, alignment, bulleted and numbered lists, tables, bookmarks, comments, footnotes, endnotes, track-changes, word count, find & replace, etc.
  • Sheet To Go offers powerful data computation with support for 111 functions, cell, number and sheet formatting, row and column preferences, auto-fit options, freeze panes, sort, cut, copy, paste, undo, redo, charting, etc.
  • Slideshow To Go allows you to effortlessly “flick” through slides, review notes, rehearse timing and make last minute modifications to presentations when on the go.
  • PDF To Go provides high-fidelity viewing of important reference materials with options for page view, word wrap, auto-rotate, bookmarks, search, select and copy text, and more...
  • Total access with support for attachments, password-protected files, built-in file browser, memory card support, and new Live Folder for recently used documents
  • Localized in English, French, Italian, German, Spanish, Portuguese, Brazilian Portuguese, Japanese, traditional and simplified Chinese
  • What's new in version 2.003 (build 605)?
    • New Zoom Controls
    • Supports Android 2.0 devies like the Motorola DROID & Nexus One
    • Optimizations for higher resolution screens
    • View and update charts
    • Smaller application size
    • Unlock key available for all regions
    • Localized in more languages
    • Bug fixes and optimizations

Why Choose Documents To Go?

  • FREE Word & Excel viewers for all Android-based devices! Get it now!
  • Full featured. Documents To Go is not just a viewer, it's a complete solution with a full range of viewing AND editing features. Customers can unlock premium features by purchasing the 'Full Version Key' from the Android Market or our online store.
  • First & only. Documents To Go is the first mobile Office suite for Android that supports editing of native Microsoft Word, Excel & PowerPoint files!
  • Powered by InTact Technology. DataViz' acclaimed technology ensures all original file formatting is retained once a file has been edited on a smartphone and forwarded on.
  • Send & receive attachments. Documents To Go is tightly integrated with Gmail and other e-mail applications like RoadSync for quick and easy native attachment downloading and sending.
  • Native. Open Word and Excel files on your Android smartphone without any desktop or server conversion needed.
  • Nothing new to learn. Documents To Go was designed and developed with the Android device user in mind - everything from the menus to the touchscreen to trackball is supported for a familiar look and feel.
  • Selected by Google to showcase our latest Android developments at Google I/O, their largest devleoper conference of the year. Watch a clip.
Included on select handsets from leading manufacturers like the T-Mobile Pulse, Acer Liquid and

Download Full version