Posts

Showing posts from February, 2015

Secure Android Application Development Tips

In Android Operating system, there are lots of security features which will protect your applications. The common security threat of Man in the middle attack, will help attackers to initiate an attack from a mobile application. This may of a small mistake like adding log of sensitive data. After development of an application it is better to do a Penetration testing . There are lots of tools and services for penetration testing and vulnerability testing. In this post I would like to give small idea about how to avoid vulnerabilities and security holes in our android application while development. As developers we should aware about the best practices of secure application development. Android developer page  contains the security best practices and security tips, the developers should follow while development. The best thing is to keep these basic tips in mind throughout the development. Then we can reduce the number of vulnerabilities and security issues inside the application. Th

Android Linkedin API with OAuth Authentication (Using Scribe-Java Library)

Image
As Linkedin is one of the professional social media network, most of us needs to access there web services to collect data. In this post I would like to give simple examples on how to get logged in user information such as email, full name, friends list. And I'm planning to update this post with the sending messages and share posts. There is no official SDK provided by the Linkedin developer support. They have recommended to use  Scribe  library (By Pablo Fernandez ), which will helpful to do the OAuth authentication with Linkedin web services. This library can be used for most of the web services, where they use OAuth authentication. In this example still I'm using OAuth 1.0 as default authentication. First we have to add the Scribe dependancy to build.gradle dependencies { compile ' org.scribe:scribe:1.3.+ ' } We have to create an application to access Linkedin API's. For that go to  Developer Console  and Add New Application. After creating the ap

Android Event Bus Implementations using Otto

As android developers we face difficulties on decoupling different parts in android application. To overcome this difficulties, the Square has introduced an event bus for android called Otto . In this post I will demonstrate how to use Otto event bus with IntentServices in Restful android client. This code can be more optimized. This publish-subscribe style can be used to decouple many other components except the Services. This is just a sample implementation to demonstrate Event Bus concept with IntentService, except ResultReceiver usage with Services. This is more interesting when it comes to event bus. Because the same results set will be available to multiple components by publishing it on event bus. The required component should subscribe to receive the results. This is more robust than the traditional java event listners and will provide more flexibility. We can initiate the Bus object according to the requirement of our application. It is not required to be singleton or a