First install the Android-mode with the package system,
Then edit the ~/.emacs.d/init.el file and add the following lines:
(Require ' Android-mode) (setq android-mode-sdk-dir "/opt/android-sdk-linux/")
Now restart Emacs, and then run the command in M-x
Android-start-emulator
You will be prompted to enter Android Virtual device, use the up and down keys to find and select, you will see before I installed the MT680, enter the device to eject the operating interface.
It is very convenient indeed.
After you close the program that the device simulates, you can run the Android-start-emulator startup again, and when you exit Emacs, the emulator also shuts down.
If you do not use Emacs Emulator, use the following command line:
EMULATOR-AVD mt680-partition-size >/dev/null &
MT680 can be found via the Android List AVD command:
[Email protected]:~/.emacs.d$ android list avdavailable android Virtual Devices: name:mt680 device:4in WVGA (Ne Xus S) (Generic) Path:/home/dean/.android/avd/mt680.avd target:android 2.3.3 (API level) tag/abi:default/ Armeabi SKIN:HVGA sdcard:1g
Enable Debugging tool DDM
M-x ANDROID-START-DDM