Android generates an officially signed APK file

Source: Internet
Author: User

The application has been developed, the next step we need to think about the promotion of work. So how do you get more users to know and use our apps? In the field of mobile phone----, the most common practice is to publish the program to an app store so that users can find our app through the store and then easily download and install it.

When it comes to the App store, it can really be said in the Android world, in addition to Google's official launch of Google Play, in the country there are 91, pea pods, Jifeng, 360 and other well-known application stores. Of course, these stores offer a similar set of features, and the way to publish apps is much the same, so here we just learn how to publish apps to Google Play, and the other store's publishing methods believe you can find out for yourself.

first, generate exactly the signature apk file

We've been using Eclipse to install the program on the phone, and the actual workflow behind it is that eclipse will package the program code into an APK file, then transfer the file to the phone and then perform the installation operation. The Android system identifies all apk files as an application's installation package, similar to an EXE file on a Windows system.

But not all apk files can be successfully installed on the phone, the Android system requires only the signed APK file can be installed, so we also need to sign the generated apk file. Then you might have questions about how you can install the program on your phone when you run the program directly through eclipse and you don't seem to have signed the operation. This is because Eclipse uses a default KeyStore file to help us sign automatically, and clicking on the Window→preferences→android→build of the Eclipse navigation bar allows you to see the location of this default KeyStore file.



that is, all of our programs running through Eclipse are signed using this Debug.keystore file. But this applies only to the development phase, so let's learn how to generate an APK file with a formal signature.

1.1 Generate exactly the signature apk file

Just click on Next. Then there will be a dialog box to select the KeyStore file, as we do not have a formal keystore file, so we should choose Create new KeyStore. Then specify the file name and path of the KeyStore, and enter the password.



To continue clicking Next, you will be asked to enter a series of information necessary to create the KeyStore file, according to their actual situation to fill in the line,.


It is important to note that in validity that column is filled with the effective duration of the KeyStore file, the unit is year, the general recommended time can be filled longer, such as I filled 30 years. Continue to click Next, you will choose the output address of the APK file,




Now click Finish, then wait a while, the KeyStore file and apk file will be generated, and the APK file is already signed. Also, since we already have your custom. KeyStore This file, you will not have to create a new KeyStore file when you package the project later, just select your custom . keystore file and enter the correct password.



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android generates an officially signed APK file

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.