Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse android ADT ignores emulator options?
    text
    copied!<p>I have set the following options in Eclipse to pass to the emulator command in <strong>Window -> Preferences -> Android -> Launch -> Default emulator options: "-cpu-delay 0 -no-boot-anim -cache /my/custom/path/to/androidcache/" (without the quotation marks).</strong> They seem to be ignored?</p> <p>I understand from <a href="https://stackoverflow.com/questions/2993282/android-emulators-lauch-options-doesnt-work-in-eclipse-plugin">Android Emulator&#39;s launch options don&#39;t work in Eclipse plugin?</a> that I can also set custom emulator options in <strong>Run -> Run Configurations</strong>, but that carries with it a different set of inconveniences.</p> <p>Any thoughts? I've considered replacing the "<em>emulator</em>" binary with a script that reflects to it with the desired options. Any harm in that (perhaps it would interfere with upgrades)?</p> <p>I'm using <em>Eclipse 3.6 (Helios), ADT 10.0.1, SDK 10.</em></p> <p><strong>Update</strong>: I see from that same link above that perhaps this setting exists only to pre-populate the Run Cofigurations as new projects are created, which seems poorly documented and only moderately useful, since emulators started from the AVD manager ignore it (unless I'm missing something) ?</p> <p><strong>Update2</strong>: I made a script to replace the emulator binary and reflect to it with the desired options. Works fine. I assume it will be overwritten on an update. This is what I did, after moving the emulator binary to emulator_real (linux environment):</p> <pre><code>#!/bin/sh /path/to/android-sdk-linux_x86/tools/emulator_real -cpu-delay 0 -no-boot-anim $@ &gt;&gt; /home/myusername/emulator_out.txt </code></pre> <p>I was unable to use an alternate directory for the cache (as shown above)... it caused errors saying the cache was in use, etc, which I think has something to do with android not seeming to work well across heterogeneous file systems.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload