Building A Simple Android App For Beginners : Android Application Optimizing
3. Sign the APK
- Go to Visual studio project- > Tools - > Publish Android Application
- Browse to the keystore selected in previous step and enter the password and alias information and click next
- Select the Target Directory to create the .apk file
4. Zipalign the APK
It is required to optimize the apk file. Xamarian.Android will check if the apk file is zipaligned if it is not application wont run.
a. For this a locate zipalign.exe usually found in C:\Program Files\Android\android-sdk\tools
b. Run the command prompt as administrator
c. Change the current directory to C:\Program Files\Android\android-sdk\tools
d. then type following command
zipalign -f -v 4 <myfile>.apk <finalfile>.apk
Replace <myfile> with name of the signed .apk file generated in previous step. Make sure you enter full path to the file.
Replace <finalfile> with the final name of the .apk file
7. Deploying Android Application
The .apk file can be published on Google Play Store more details on that can be found here
Independent developers can upload there apps to there website and provide the download link.
The Application developed above can be downloaded from the following link Download Link