Table of Content

Let’s say you want to setup Android and Java dev env on portable usb disk.

Basically idea is Android app IDE most used Eclipse for many years by Google but now move to Android Studio IDE, both will use same SDK so can share one common copy.

1 portable JDK

install latest JDK for example JDK 8 from Oracle site, install to portable driver
L:\Java\jdk1.8.0_60

setup Java env in Windows System env:

create new JAVA_HOME
JAVA_HOME=L:\Java\jdk1.8.0_60

add JAVA_HOME to end of PATH
...;%JAVA_HOME%\bin

you can verify from cmd, should run java and javac from anyplace.

2 portable Android Studio setup

1) download zip package for AS and SDK from

http://developer.android.com/sdk/index.html#Other

Latest stable AS version is 1.5.

2) unzip to portable usb disk L
L:\android\android-studio
L:\android\asdk

3) setup JDK and SDK location for AS

File/Project Structure/SDK location:
Android SDK location:
L:\android\asdk
JDK location:
L:\Java\jdk1.8.0_60

4) setup SDK for AS

Settings/Appearance & Behavior/System Setting/Android SDK
SDK Platforms
click
Android 6.0/5.x
SDK Platform
ARM EABI v7a System Image

SDK Tools
click
Android SDK Build Tools highest version
Android SDK Platform-tools
Android Support Library
Google USB Driver
Intel x86 Emulator Accelerator (HAXM installer)

5) IDE theme/font
File/Setting/Appearance/Editor/Colors & Fonts
change Scheme to Darcula, then click Save As to new name like dc
then click Font

Editor Font/Primary font: Source Code Pro
Console Font/Primary font: Consolas

3 portable Eclipse setup

1) download latest Eclipse neon 64 bits from this link

eclipse-java-neon-M4a-win32-x86_64.zip

http://www.eclipse.org/downloads/packages/release/Neon/M4A

2) setup JRE for Eclipse
You don’t really need JDK javac for Eclipse which coming with build in Java compiler, but need to setup JRE.
So we use JRE8 from JDK8 since portable JDK ready there.

Window/Preferences/Java/Installed JREs:
L:\Java\jdk1.8.0_60\jre

3) install ADT plugin from google
Help/Software Updates/Install New Software
Now use Add button to add ADT Plug-in as name and https://dl-ssl.google.com/android/eclipse/

4) setup SDK
we use portable SDK which used with Android Studio,
Window/Preferences/Android/SDK Location:
L:\android\asdk

5) IDE theme

install Color Theme:

Help→Install New Software
press Add Site
enter Eclipse Color Theme as the name and http://eclipse-color-theme.github.com/update as the URL

config Color theme:

Window/Preferences/General/Appereance/Color Theme
change the color theme
choice Wombat, apply