Method of installing APK in Android simulator

This article describes the method of installing APK in Android simulator. Share with you for your reference, as follows:

Step 1:

Start the simulator in eclipse.

Step 2:

Open the doc naming window and go to platform tools in your Android SDK installation directory,

E: / program files / Android_ sdk/platform-tools

Step 3:

Use ADB to install Android. It is suggested to use scheme I in the third step

Scheme I:

For convenience, we should copy the APK to be installed directly to the directory where platform tools is located, and then enter it under doc

Scheme 2: ADB install < path of APK to be installed > format is as follows:

This completes the installation. Check the simulator to verify that the installation is successful. As shown below:

As for how to uninstall, I think everyone knows.

Summary:

Today, I'm going to install an APK into the Android flat-panel simulator to see the effect, so I was blinded at that time, because usually the engineering code is packaged and installed directly into the mobile phone through eclipse software, and we just work. So how do we install the APK package into the Android simulator.

The first thing to contact is how to install the APK package in the real machine, but it doesn't work because the real machine has a file manager and the simulator doesn't have one. Even if you import the package, you still can't open it. So I can only turn to Google. It turns out that ADB has this meaning and finally uses it. Its full name is: Android debug bridge, that is, Android debugging bridge. I see. I found a tool. What's left is the use of the tool. Next, I refer to ADB's install, push import and pull export files and other common command formats. I have a little understanding of the application layer. Thought harvest is to think before doing something, think twice, and apply it to your practical life.

I hope this article will help you in Android programming.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>