Develop Mobile App Using Visual Studio 2015 (Apache Cordova)

Mobile app

Steps to develop mobile application,

  1. Install Visual Studio 2015 in your local machine.

    Install visual studio

  2. Create a new Project in your workspace.

    new Project

    Select Blank app and save it in your machine workspace.

  3. Then once it is saved then you will see the following screen,

    Start

  4. Click www, then index.html, where you can design your mobile application with html code.

    mobile application with html code

  5. Then run the application, you will see the following screen,

    run the application

    That’s all, here is your mobile application, for more attraction add CSS style to your solutions.

    Now how to deploy it in your machine?

Steps to install developed mobile app to you android mobiles

  1. Put the solution release mode and select android option.

    solution

  2. Now build the solution.

  3. Once it build successfully, go to solution folder- bin, Android, then Release.

    Here you can see once unsigned APK file.

    Now our next step is to change that APK file from unsigned to signed. For this we have to run some command in CD.

  4. Open Run, cmd, then run as admin.

  5. Go to this directory.

    directory

    Just type keytool to view all the commands.

    commands

Then run the following syntax to generate a key,

  1. keytool -genkey -v -keystore <keystoreName>.keystore -alias <Keystore AliasName> -keyalg <Key algorithm> -keysize <Key size> -validity <Key Validity in Days>  
Then it will ask for details which you supposed to fill, then after finishing all the details, automatically .KEY file generate unspecified path.

Now go to the build.json file in your solution and key in all the valid key details and save, Build.

Finish, bin/android/release/ you can see .apk file  signed. Copy it to your mobile and install.

Try this method to improve your skills in developing Apache Cordova mobile apps using Visual Studio 2015.

 


Similar Articles