Tutorials Android How to Generate .apk and Install to Android Device

How to Generate .apk and Install to Android Device

This tutorial will be demonstrate, how to build android code and generate a signed APK and then install in device.

Application testing is one of the vital thing we do soon after development. Due to larger number of devices with different resolution, different OS versions and different capabilities, it is difficult to test the application on all supported devices. Due to this limitation, each of the vendors made application testing easy using virtual devices or so called simulators.  Android uses AVD, Android Virtual devices to test the mobile application.

How to generate signed .apk in android?

  • Download the android Keys and place it in local folder.
  • Right Click on the Project.
  • Find Android Tools>Export Signed Application Package.
  • Select the Project to Export Signed Application Package and Click Next
  • Key store Page selection appears.
  • Enable radio button of use Existing key store.
  • Browse to the local folder of the android keys.
  • Enter the appropriate key password (Same as the key password given while generating key store), Click next.
  • Select the destination folder, where you want to place your newly created .apk. And Click finish.

How to installing android application

Before testing the application either in real device or simulator we need to install it. In android there are various different ways to install the android application (.apk) into simulator or device.

1. Installing .apk to simulator using eclipse

One way of installing android application to android emulator is using Eclipse. Once we create the avd from avd manager, we can run the application directly from the source project from eclipse. For every subsequent change or testing we don’t have to restart the AVD every time.

2. Installing .apk to simulator using ADB utility

If you don’t have access to Eclipse or the ADT Plugin, you can install your application on the emulator using the adb utility. Before installing the application, you need to build and package it into an .apk.

When the emulator is running, you can also connect to the emulator instance’s console to issue commands as needed.

> <adb install <path-to-your-APK>
Total
0
Shares
guest
7 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Allyssa
Allyssa
9 years ago

Superb!

Ranjan
Ranjan
9 years ago

Very informative article post.Really thank you!

Søren Hansen
Søren Hansen
9 years ago

I don’t see any “tutorial” about how to actually install a signed apk file. Just a weak statement that it can be done using eclipse.

HOW exactly do I install Signed Apk file to an Android phone using Eclipse?

Thanks 🙂

user
user
9 years ago
Reply to  Søren Hansen

You can install an signed .apk in device using android ADB utility. You don’t need eclipse for that. You can use the below command
adb install path-to-your-APK

Maillot AC MILAN
Maillot AC MILAN
9 years ago

I’m really enjoying the theme/design of your site.

மணிக்கட்டி கேசவன்
மணிக்கட்டி கேசவன்
6 years ago

really nice

Dhiraj Tiwari
Dhiraj Tiwari
5 years ago

Hi can u tell me , why Apk is not installed in android Mobile, Apk generate by android studio

Previous Post
Android Tutorials

Loading Image Asynchronously in Android ListView

Next Post
Android Tutorials

Android TextToSpeech Example

Related Posts
By clicking “Allow All”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookie Notice
Allow All
7
0
Would love your thoughts, please comment.x
()
x