Skip to main content

Posts

Showing posts with the label Android

Android and iOS Mobile Application Development (Part 4): Testing and deploying our Mobile Application onto an actual Android or iOS device

Welcome to the fourth and final part of our series on Android and iOS Mobile Application Development. Previously, we have seen how to debug our mobile application within the Google Android Emulator. Now, we are ready to deploy our app onto an Android and iOS physical device. Let's take a look at how to deploy our application on an Android device first. Android deployment If you are using Windows, first, we will have to download the necessary hardware device drivers. After this is done, we will need to install Google USB driver. This will allow us to use the Android Debugging Bridge or adb for debugging on a physical device later. To install Google USB driver, in Visual Studio 2015, select Tools > Android > Android SDK Manager. Scroll down to Extras and you will be able to see the Google USB driver. Go ahead and install it. After installation is done, we will now be able to start deploying to, and debugging from an Android device. Go ahead and plugin your device...

Android and iOS Mobile Application Development (Part 3): Creating our first Mobile Application in Visual Studio 2015 using Apache Cordova

Welcome to the third part of the series on Android and iOS Mobile Application Development. Let's begin! Creating our first Apache Cordova project First, in Visual Studio 2015, we will need to select Other Languages > Javascript. From here, we can choose Blank App (Apache Cordova). At first glance, we can see that the project structure is very much different than how we are used to seeing it. However, this project structure is pretty much in line with how we will be writing web applications in the future. Scott Hanselman has a pretty good article explaining the idea behind this which I encourage you to read if you are not already familiar with Bower and NPM. For the purpose of this article, we are going to go straight into downloading the packages we need using Bower. Let's open up the bower.json file. We will be downloading AngularJs, Ratchet and something called Script.js Simply, Script.js helps us by being able to download our javascript files on-demand and lo...

Android and iOS Mobile Application Development (Part 2): Securing our Web API application with Azure Active Directory OAuth

Welcome to the second part of the series on Android and iOS Mobile Application Development. Before we begin learning about how to setup Azure Active Directory for securing our Web API, let's first take a deep dive into why we have chosen Azure Active Directory and OAuth to secure our Web API. Why not use ASP.NET Forms Authentication Cookie? Securing our web application traditionally, typically involves validating a user's username and password against our database store, and creating our own ASP.NET forms authentication cookie if the credentials matches. With newer versions of ASP.NET, an identity database can be easily created and utilized with ASP.NET forms authentication cookie issued via the identity framework. This means we spend even less time writing our own custom database store and writing validation code. However, there are still some drawbacks with ASP.NET forms authentication cookie. The security disadvantage can be best explained by Microsoft here , which talk...