App Inventor connecting Ubuntu and Samsung Galaxy S

Submitted by AppCreator on Fri, 07/23/2010 - 12:53

I got my Google Android App Inventor invite early this week and had some trouble connecting the Blocks Editor to my Samsung Galaxy S. So I thought I would post some tips for anyone else experiencing similar issues using App Inventor on Ubuntu. Firstly I must say the Galaxy S is a brilliant phone/mobile computer and I have no trouble connecting to it from ubuntu as a mass storage device. I can plug it in and share files between them easily.

These steps are for Ubuntu and the Samsung Galaxy S although they should work with other Linux distros and phones and at least point you in the right general direction on other Operating Systems such as Windows. I found most of these points at App Inventor Troubleshooting page and from the App Inventor Group mailing list.

  • Ubuntu ships with open-jdk unfortunately this doesn't work well with App inventor, so you will need to uninstall openjdk, openjre and any other openjava related packages and install the equivalent Sun versions.
  • Check what versions you have installed:
    dpkg -l | grep jre
    You need sun-java6-jre
  • Once you have the correct Java installed enable debugging in the Java Control Panel
    javaws -viewer
    Click on the Advanced tab and under Setting > Debugging select the checkboxes.
  • Create or edit the /etc/udev/rules.d/51-android.rules file.
    cd /etc/udev/rules.d/
    sudo nano 51-android.rules

    Paste in:
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="681d", MODE="0666"
    Make sure you look up the correct vendor id and product id.
  • Check your firewall and make sure port 9997 is enabled.
  • If you have also downloaded the Android SDK, make sure Eclipse is closed.
  • Make sure you browser is set to open the .jnlp file.