Starting an AVD from a custom location

by Patrick » Mon, 28 Jun 2010 16:55:28 GMT

Sponsored Links

I want the android emulator to start a AVD from a non default location
using the following command:
./android-sdk-linux_86/tools/emulator -sysdir /opt/
development/.android/avd/ -avd AVD1.6_HTC_SD

The .android directory is a copy from the default .android directory
from my homefolder...

The emulator states the following:
emulator: ERROR: unknown virtual device name: 'AVD1.6_HTC_SD'
emulator: could not find virtual device named 'AVD1.6_HTC_SD'

Any ideas?


Starting an AVD from a custom location

by Xavier Ducrohet » Tue, 29 Jun 2010 03:58:50 GMT

 -sysdir cannot be used with AVDs.

you can overide the location of the .android folder by setting an env

In your case, you should try:
$ ANDROID_SDK_HOME=/opt/development emulator -avd AVD1.6_HTC_SD



Sponsored Links

Other Threads

1. Private Storage with App2sd.

I found this message about App Install location:

"The .apk file is saved on the external storage, but all private user
data, databases, optimized .dex files, and extracted native code are
saved on the internal device memory"

Based on this, I believe it is a bad idea to place anything large
(meaning more than a few megabytes), as a private storage file.

ie, if I call

openFileOutput(FILENAME, Context.MODE_PRIVATE);

It should be only for little files. If a user moves their app to the
SD Card, it doesn't really give them any more room for these files.

For anything else, I should plan on it being on the storage card, and
open to the public.

Am I right?



2. A timer thread and url fetch thread in same activity.

I am having problems with a timer that should fetch http results from
the web every 5 minutes.
I having problems with two threads - often I cannot even turn them off
or keep the timer going without upsetting the apple cart.

Should I start using wait() and notify(), a separate service or
continue trying to get them to be friends with each other in the same
activity. At present its all very badly behaved and I feel as though I
am juggling with marbles.


3. how to remove a view

4. Retrieve the Starred Contacts

5. Issue tracker and errors in pages

6. IllegalStateException: Fragment not added in ActionBarTabs example

7. Fragment animation as in Honeycomb Gmail app - how to do that?