Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator's launch options don't work in Eclipse plugin?

Tags:

android

I need to change the emulator's default time zone. It worked in command line with -timezone option. But when I tried it in eclipse android's launch options. it didn't work. I set it in Window->preferences->android->launch->default emulator options. Am I setting it in a wrong place?

like image 323
wei Avatar asked Jun 07 '10 21:06

wei


2 Answers

go to

Run > Debug Configurations/Run Configurations

Tab

Target > Additional Emulator Command Line Options

like image 88
Jorgesys Avatar answered Nov 06 '22 01:11

Jorgesys


I've confirmed that in Eclipse 3.5.2 that the Window/Preferences/Android/Launch/Default Emulator Options method works.

For myself, being in L.A. I typed in the following for the emulator option...

-timezone "America/Los_Angeles"

I created a new Android project, ran it, and the timezone parameter was already included for me in the new Eclipse Run configuration.

Using this method, you only need to define the parameter once, and not for each individual Android run configuration, as the first answer states you should do.

So, yes, you are doing it in the right place.

like image 21
Adrian Romanelli Avatar answered Nov 06 '22 02:11

Adrian Romanelli