Android : Generate Release/Debug Keystores

Generate Keystores To generate keystores for signing Android apps at the command line, use: $ keytool -genkey -v -keystore my-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 A debug keystore which is used to sign an Android app during development needs a specific alias and password combination as dictated by Google. To create a…

OAuth 2.0

Now a days APIs do a major role in software engineering, and accessing APIs from mobile devices are becoming very useful. So when it comes to that, OAuth2 is an excellent protocol for securing API services from untrusted devices. OAuth Roles There are four major roles defined in OAuth Resource Owner The resource owner is the…

Android Push Notifications with GCM – Client Side

Overview of Google Cloud Messaging As per google’s documentation “Google Cloud Messaging for Android (GCM) is a service that helps developers send data from servers to their Android applications on Android devices” Send a request to GCM from the device to register (with the google project number). GCM sends back the device registration ID. Device…