Android : Install Application APK into AVD Manager

From Stackoverflow :

If you set the all java_SDk and Android_sdk in environment variable in your system than it is good to handle command from any where so check this steps:

Step1:If you don’t set than Fisrt you need to set environment variable of android-sdk like this C:\Program Files\Android\android-sdk\tools;C:\Program Files\Android\android-sdk\platform-tools And this is my location of android sdk your could be different .

Step2:If you use eclipse than create avd with the your application version specified .Than run your emulator .

Step3:After Run That Emulator sucessfully,than open cmd if you use Window than write this command: adb install “E:\path for your apk” at this time make sure that there is only one devices is running ok

***

Then if your app has google maps library :

To get past INSTALL_FAILED_MISSING_SHARED_LIBRARY error with Google Maps for Android:

1) Install Google map APIs. This can be done in Eclispe Windows/Android SDK and AVD Manager -> Available Packages -> Third Party Add-ons -> Google Inc. -> Google APIs by Google Inc., Android API X

2) From command line create new AVD. This can be done by listing targets (android list targets), then android create avd -n new_avd_api_233 -t “Google Inc.:Google APIs:X”

3) Then create AVD in Eclipse Windows/Android SDK and AVD Manager -> New… -> (Name: new_avd_X, Target: Google APIs (Google Inc.) – API Level X)

4) Create Android Project in Eclipse File/New/Android Project and select Google APIs Build Target.

5) add <uses-library android:name=”com.google.android.maps” /> between <application> </application> tags.

5) Run Project as Android Application.

If error persists, then you still have problems, if it works, then this error is forever behind you.

How to Uninstall it?

To Uninstall a .apk file is a lot easier than installing it. Open your Android SDK emulator and follow these instruction to Uninstall the applicationinstalled on your Android emulator. Let us suppose that we have already installed a Sudoku application,  and we want to uninstall it. It can be done in the following methods:

  • Menu > Setting > Application > Manage Application > Sudoku > Uninstall

Another way is via command prompt :

Go to Start>>run>>cmd (open a windows command prompt or shell) and type the following commands “highlighted in bold orange”.

cd e:\android-sdk-windows\tools\

comments: we do this in order to change our directory level to folder location where the emulator isinstalled, and in our tutorial it’s installed in “e:\android-sdk-windows\tools”

adb shell ls data/app

comments:Since we know that Android is linux based, so we use ls command to see which applicationwe have to uninstall. It lists the application’s exact name and location.

adb shell rm data/app/com.androidcan.asudoku.apk

comments: Android emulator command to uninstall or remove the Sudoku application.

adb shell ls data/app 

Comments: To check if com.androidcan.asudoku.apk has been erased or not.

Satu pemikiran pada “Android : Install Application APK into AVD Manager

  1. instagram how many likes for popular page
    We absolutely love your blog and find many of your post’s
    to be exactly I’m looking for. can you offer guest writers to write content available for you?
    I wouldn’t mind writing a post or elaborating on many of the subjects you write concerning here.
    Again, awesome web log!

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s