0% found this document useful (0 votes)
42 views5 pages

Exporting Android Apps as APK Files

To export an Android application, you need tools like Dx, AAPT, and APK to convert files and package the app. Use Android Studio to generate a signed APK by selecting Build → Generate Signed APK, entering keystore details, and following the prompts. After exporting, register with Google Play, pay the registration fee, and upload your APK to complete the process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views5 pages

Exporting Android Apps as APK Files

To export an Android application, you need tools like Dx, AAPT, and APK to convert files and package the app. Use Android Studio to generate a signed APK by selecting Build → Generate Signed APK, entering keystore details, and following the prompts. After exporting, register with Google Play, pay the registration fee, and upload your APK to complete the process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Export android application process

Before exporting the apps, you must some of tools

• Dx tools(Dalvik executable tools ): It going to convert .class file to .dex file. It has useful for
memory optimization and reduce the boot-up speed time.
• AAPT(Android assistance packaging tool): it is useful to convert .dex file to .apk
• APK(Android packaging kit): The final stage of deployment process is called as .apk.

 You will need to export your application as an APK (Android Package) file before you
upload it Google Play marketplace.
 To export an application, just open that application project in Android studio and select
Build → Generate Signed APK from your Android studio and follow the simple steps to
export your application –
 Next select, Generate Signed APK option as shown in the above screen shot and then
click it so that you get following screen where you will choose “Create new keystore to
store your application.”

 Enter your key store path, key store password, key alias and key password to protect your
application and click on Next button once again. It will display following screen to let
you create an application –
 Once you filled up all the information, like app destination, build type and flavours click
finish button while creating an application it will show as below

 Finally, it will generate your Android Application as APK format File which will be
uploaded at Google Play marketplace.
 Google Play Registration:
 The most important step is to register with Google Play using Google Play
Marketplace.
 You can use your existing google ID if you have any otherwise you can create a
new Google ID and then register with the marketplace.
 You will have following screen to accept terms and condition.
 You can use Continue to payment button to proceed to make a payment of $25
as a registration fee and finally to complete your account detail.
 Once you are a registered user at Google Play, you can upload release-ready
APK for your application and finally you will complete application detail using
application detail page as mentioned in step 9 of the above mentioned checklist.

Signing Your App Manually:


 You do not need Android Studio to sign your app.
 You can sign your app from the command line using standard tools from the Android
SDK and the JDK.
 To sign an app in release mode from the command line –
 Generate a private key using keytool

$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize


2048 -validity 10000

 Compile your app in release mode to obtain an unsigned APK


 Sign your app with your private key using jarsigner

$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore


my_application.apk alias_name
 Verify that your APK is signed. For example −
$ jarsigner -verify -verbose -certs my_application.apk
 Align the final APK package using zipalign.
$ zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk

You might also like