At the Linux terminal, enter:
xxnan@xxnan-pt:~/android/android-sdk-linux/tools$./EMULATOR-AVD android4.0.3
is to open the simulator you created.
~/android/android-sdk-linux/tools$ Directory is the SDK's tools directory, android4.0.3 is the name I created the simulator.
Such as
In general, we sometimes develop changes in the source content, and then compiled, and finally repackaged system.img to the simulator to see the effect (in the source directory make Snod),
So how do you system.img,userdata.img and ramdisk.img when the simulator starts loading?
Generally we use the command:
Remember to go under the tools directory of the SDK:
xxnan@xxnan-pt:~/android/android-sdk-linux/tools$./EMULATOR-AVD Android4.0.3-kernel Source/prebuilt/android-arm/ Kernel/kernel-qemu-armv7-system
System.img path/system.img-data userdata.img path/userdata.img-ramdisk ramdisk.img path/ramdisk.img
The following are my paths:
[Plain]
XXNAN@XXNAN-PT:~/ANDROID/ANDROID-SDK-LINUX/TOOLS$./EMULATOR-AVD android4.0.3
-kernel ~/android_source/android_4.0.3/prebuilt/android-arm/kernel/kernel-qemu-armv7
-system ~/android_source/android_4.0.3/out/target/product/generic/system.img
-data ~/android_source/android_4.0.3/out/target/product/generic/userdata.img
-ramdisk ~/android_source/android_4.0.3/out/target/product/generic/ramdisk.img
This will be able to load system.img,userdata.img and ramdisk.img when the simulator is started, and see the effect of modifying the source code in the simulator.