Skip to main content

Build a Phone gap android App deployable into google play store


  1. Build the application in debug mode
  2. Go inside the folder :  "platforms/android/assests/www/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/fixtures/"
  3. And delete all the files
  4. Open Cmd prompt in administrator mode
  5. Go inside folder : "platforms/android/cordova"
  6. Type :  "build --release" and press enter.
  7. Now check the path of  keytool.exe in your PC : C:\Program Files\Java\jre1.8.0_45\bin
  8. Using command prompt go inside the folder and type the following command
  9. Generate a private key using keytool. For example:
    $ keytool -genkey -v -keystore my-release-key.keystore
    -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
  10. Change the red highlighted text as per requirement.
  11. Press enter and fill the asked information. Please do remember the alias name and password asked during the processing
  12. Now check the path of jarsigner.exe in your PC:  C:\Program Files\Java\jdk1.8.0_45\bin
  13. 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

  14. Verify that your APK is signed. For example:
    $ jarsigner -verify -verbose -certs 
    my
    _application.apk
  15. Now check for the path zipalign.exe in Your PC: C:\Program Files (x86)\Android\android-sdk\build-tools\22.0.1
    Align the final APK package using zipalign.
$ zipalign -v 4 your_project_name-unal
ig
ned.apk your_project_name.apk

Comments

Popular posts from this blog

Design Android Tool bar with constraint layout

 Toolbar in Android plays a very important role in quick page movement.  Steps to implement toolbar in Android 1. Create a layout file toolbar.xml in r es/layout directory 2. add below code into your toolbar.xml file. 3. Customize this as per your requirement <? xml version ="1.0"  encoding ="utf-8" ?> <layout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" > <androidx.appcompat.widget.Toolbar android :id ="@+id/toolbar" android :layout_width ="match_parent" android :layout_height ="?attr/actionBarSize" android :background ="@color/colorPrimaryDark" app :elevation ="0dp" app :layout_collapseMode ="pin" > <androidx.constraintlayout.widget.ConstraintLayout android ...

Android Studio ADB is not responding manually kill adb Server

I was using Ubuntu 14.04. After installing Android Studio, I started getting this error. After all possible updates it still din't work. I had become crazy in solving this issue.                             After executing this command this error got resolved. First Command : adb apt-get install lib32stdc++6  Second Command : sudo apt-get install lib32z1 For other Adb related issue  

How to build an Android based phone gap application which supports all android Version?

As all we know, the very  first purpose of development of a phone gap based application is to support as much as platforms possible using a single code base. Though phone gap uses simple HTML, javascript and CSS, but Is it still enough to build an application which supports all android platforms. If you are using a phone KITKAT or LOLLYPOP based android phones for development, suddenly you will realize that your application  is not Jellybean and lower version. All Lists and buttons etc etc have gone Hayward. So How to correct this problem? Phone Gap has solve this problem in their very recent release using some crosswalk plugin.  Makes your Cordova application use the  Crosswalk WebView   instead of the System WebView. Requires cordova-android 4.0 or greater. Benefits WebView doesn't change depending on Android version Capabilities: such as WebRTC, WebAudio, Web Components Performance improvements (compared to older system webviews) Dr...