http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/Collections-Jar-Zip-Logging-regex/java/util/ArrayList.java.htm
Friday, June 10, 2011
Thursday, June 9, 2011
How to configure ADB on Ubuntu 10.10 (USB problem)
for the G-Tablet
1. Install Sun JRE and SDK
Unfortunately Ubuntu no longer hosts the SUN SDK/JRE so you will need to obtain this from an alternate source:
Run these commands:
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6
2. Define your JAVA HOME and PATH:
Edit your .bashrc
Run this command:
sudo gedit $HOME/.bashrc
Add these lines to your .bashrc. Please ensure where you installed the Java libraries and your android sdk. The below reflects default installation directories. (Note last line that includes the Android SDK. You can add this now and install the SDK later. Just make sure if you change the default installation directory that you update your .bashrc file)
export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.22;"
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$HOME"/android-sdk-linux_86/platform-tools"
Run this command to reload your .bashrc:
source ~/.bashrc
3. Install Android SDK:
Goto http://developer.android.com/sdk/index.html
Extract and Install By default, the SDK files are unpacked into a directory named android-sdk-<machine-platform> under your HOME directory.
Navigate to the Android Manager and launch:
cd ~/android-sdk-linux_86/tools
./android update sdk
This will automatically run the android manager and add/update the SDK. I typically install all the packages (for development) but typically for ADB connectivity all you need is the Android SDK Tools and Platform Tools. ADB will not be working properly until you configure the USB driver for the tablet. Thats next.
4. Configure USB Driver
We need to modify your device rules:
sudo gedit /etc/udev/rules.d/99-android.rules(or 51-android.rules these would depend on your ubuntu version)
Then, paste the following line into the file 99-android.rules file
#HTC
UBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
#samsung
UBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM==”usb_device”, SYSFS{idVendor}==”04e8”,ATTRS{idProduct}=="689e", MODE=”0666”,OWNER="fstech"
Type the command--> "lsusb" on terminal to get the vendor id and product id of the plugged in device
for example:
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 04e8:689e Samsung Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
here 04e8 is the vendor(Samsung or HTC ) id and 689e is the product id
**Save and Close gedit (or any other text editor)
**run the command -chmod a+rx /etc/udev/rules.d/51-android.rules
Restart the device manager:
sudo restart udev
Launch adb:
adb kill-server
nohup adb start-server
adb devices
export PATH=${PATH}:/home/fstech/Android/android-sdk-linux_x86/tools
ANDROID_TOOLS=/home/fstech/Android/android-sdk-linux_x86/platform-tools
ANDROID_NDK_ROOT=/home/fstech/Android/android-ndk-r6
export PATH=$ANDROID_TOOLS:$PATH
export PATH=${PATH}:/home/fstech/Android/android-ndk-r6
export PATH=$ANDROID_NDK_ROOT:$PATH
If you see your device your done... PM me if you have any questions...
How to include java docs -Eclipse
- In the Package Explorer window, choose the package or file for which you want to generate documentation.
- Choose File -> Export... -> Javadoc -> Next>
- If the dialog box displays the message The Javadoc command does not exist, then you need to click the Configure... button and locate
javadoc.exe
. You already have this file--it is probably inYourJavaDirectory/jdk1.5.0/bin/
.
- If the dialog box displays the message The Javadoc command does not exist, then you need to click the Configure... button and locate
Subscribe to:
Posts (Atom)