Steps to develop mobile application,
- Install Visual Studio 2015 in your local machine.
- Create a new Project in your workspace.
Select Blank app and save it in your machine workspace.
- Then once it is saved then you will see the following screen,
- Click www, then index.html, where you can design your mobile application with html code.
- Then run the application, you will see the following screen,
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
- Put the solution release mode and select android option.
- Now build the solution.
- 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.
- Open Run, cmd, then run as admin.
- Go to this directory.
Just type keytool to view all the commands.
Then run the following syntax to generate a key,
- 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.