Demonstrate Android App from USB Drive
Assuming you want to show your application to a friend / client, and they don’t have an Android SDK, Eclipse or even an uptodate JRE on their machine, you can put everything you need onto a USB stick without affecting your development environment.
Create the “androiddem” folder on a stick, copy the minimal sdk file (no documents or samples needed) with the necessary platforms and Java runtime into your own folders.
Open the DOS window from the root of the USB drive and set the local environment variable ANDROID_SDK_HOME to the root of the disk. (This env variable is a little wrong if you use Eclipse the way it doesn’t need it, and selects the SDL location from the general Android settings). It controls where the AVDs are created, so as soon as you set it to h: \ (let's say), you can go to the tools directory on a stick and create AVD in normal mode - they will end up being .android on a stick.
If you copy the files you need (make sure they are signed with the release key), then from another DOS field (with the ANDROID_SDK_HOME parameter set as before, you can use the adb commands to install the apks for AVD that you did.
All you have to do is take the stick on the target machine, reopen the DOS field, set ANDROID_SDK_HOME, add the JRE to the path and run the emulator that assigns the target AVD.
You can simplify the process by creating batch files on a stick to set env variables and paths.
NickT Oct 31 '10 at 16:00 2010-10-31 16:00
source share