1. Start the simulator (my source code is SDK 2.1)
Emulator-AVD sdk_2_1
2. Modify and compile modules
In the source code, write the log where you need to verify and save
First go to the source package
Mmm packages/apps/launcher if the prompt does not find the mmm command to execute. Build/envsetup. SH and then execute the above command 3. reinstall the application ProgramThe compiled APK package overwrites the original APK and enters the APK directory. Run the following command: ADB-install-r {APK package path} Extension: ADB-install-l: "-l" means forward-lock the app-R: "-R" means reinstall the app, keeping its data-S: "-s" indicates that the program is installed on the SD card, not in memory. 4. Open ddms to view log and process information. Open ddms: ddms & select the corresponding process, and the virtual machine hypes the corresponding software. The ddms will show that the program source code running process runs to your log location, the log information is displayed for tracking.