How to add/delete Android applications

Source: Internet
Author: User

First, add an application (if the application already exists, delete it first ):

Compile your andorid application, and then you need to useADBThe tool loads the .apk file to the/data/APP/directory of the simulator. The usage is described below.

  1. Start the simulator (run/tools/emulator.exe In the SDK directory under the command line); you need to specify the local simulator to be started.
  2. The simulator switches to the main screen (it is recommended that you do not install the program on the simulator when the program is running. You can press the Home Key to exit the application );
  3. Run ADB and install the myproject/bin./<appname>. APK file. For example, to install Hello Android, switch to the/tools/subdirectory under the SDK directory in command line mode and enter ADB install myproject/bin/helloandroid.apk;
  4. In the simulator, open the executable program list and scroll the screen to see the added application.

Note: When you install an activity for the first time, you may need to restart the simulator before the startup Item is displayed or before other programs call it. Because software package management tools generally only fully review manifests when the simulator is started.

The second is to delete the application (command line mode, not Windows window mode ):

  1. Start the simulator (run/tools/emulator.exe In the SDK directory under the command line );
  2. The simulator switches to the main screen (it is recommended that you do not install the program on the simulator when the program is running. You can press the Home Key to exit the application );
  3. Enter the command to run the ADB Shell Command (enter the command mode of the simulator );
  4. Enter the command CD/data/APP to enter the/data/APP directory );
  5. Enter the LS command (this command can view the applications and subdirectories under/data/APP and find out the names of the applications you want to delete );
  6. Enter the rm xxx command (XXX is your application name, such as com. Simon. Android. helloandroid );
  7. In the simulator, open the executable program list and find that the application has been deleted.
Related Article

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.