Android running simulator script (batch processing)

Source: Internet
Author: User

Batch Processing is offered by the teacher and from the Internet.

Just make a record to indicate that android has been used...

 

Run. bat

@ REM: REM (or: :) is equivalent to the // annotation symbol in C Language <br/> @ REM:/D indicates that the drive letter is changed together. <br/> @ REM: the best way to comment out a line is => A space followed by a colon (a space is required) <br/> @ REM: Exit/B 0: only the current batch script is returned, but not the cmd.exe program. Exit code 0 </P> <p>: **************************************** *********************************** <br/>: * ** put the operation statement to be executed here <br/> @ goto run_emu_win <br/>: **************************************** *********************************** </P> <p>: run_emu_win <br/> REM run Android emulator now in Windows (run Android simulator) <br/> @ set android_sdk_dir = E: /CL/android-sdk-windows_2.2 full version/Android-SDK-Windows/<br/> @ set android_emulator = % android_sdk_dir %/tools/emulator.exe <br/> @ set android_run_dir_orig = % android_sdk_dir %/platforms /Android-8/</P> <p>: @ set android_run_dir = E:/CL/android-sdk-windows_2.2 full version/Android-SDK-Windows/<br/>: @ set android_run_skin_dir = % android_sdk_dir %/tools/lib/images/skins </P> <p >:@ set android_skin = HVGA-L <br/>: @ set android_skin = QVGA-P <br/>: @ set android_skin = QVGA-HENG <br/> @ set android_skin = hvga <br/>: @ set android_skin = WVGA <br/>: @ set android_skin = wvga800 </P> <p>: **************************************** ********************************** <br/>: * ** emulator run method: <br/> @ % android_emulator %-Sysdir % android_run_dir_orig %/images-data % android_run_dir_orig %/images/userdata. IMG-skindir % android_run_dir_orig %/skins-skin hvga-memory 512-Debug all </P> <p> pause </P> <p> exit

 

Install. bat

Clweather.apk is directly copied under the bin directory of the project.

ADB install clweather.apk <br/> pause <br/> exit

Uninstall. bat

Here, org. Spring. Demo is in the androidmanifest. xml file of the project: package = "org. Spring. Demo"

ADB uninstall org. Spring. Demo <br/> pause <br/> exit

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.