Page 1
Standard

How to use Observer interface and Observable class in Android

In Android sometimes we came across a situation when on a certain event we have to perform a certain task on more than one places i.e. fragments and activities. For example, If we have three fragments displaying score and on a specific event at any place in application we have to update score, what we will do? We will update score on all three place but how? And what if we have to update score at 15 places. I will try to answer these question in this tutorial with the help of Observable class and Observer interface.
Continue Reading →

Standard

How to Add AdMob Interstitial Ads in Your Android App

Apart from offering paid apps, there are a number of other ways to monetize your mobile applications. Advertising is one of the means to monetize (make money with) mobile applications. In this tutorial I will show you how to display ads in your application. There are may mobile advertising networks and Android allow developers to choose any network of their choice. In this tutorial I am using AdMob.

Continue Reading →

Standard

How to access function in FragmentActivity from Fragment in Android

When we use Fragments, we often came across a situation when we need to change or update a variable or access function in parent activity i.e. FragmentActivity. We can directly accessing parent activity to accomplish this task.

Continue Reading →

Organize project
Standard

Organize medium or large scale Android project efficiently

This is the 1st article of a series of articles on how to organize Android project. You can find links to other related articles at the bottom of the page as soon as they are published.

Organize Android projects

It is very important to know basic information about the project, before you start working on project. I am writing few techniques and rules of thumb based on my experience. These rules can give you an idea how to start and organize a medium or large scale Android project. You can organize your project in any way which makes the most sense to you. There is no 100 percent correct or wrong way to organize a project.
Continue Reading →

Standard

Heartbleed bug ! Is your data safe on Facebook, Gmail, Yahoo etc?

Heart Bleed bug has reportedly put millions of passwords, credit card numbers and other private data online at risk. Beside websites, servers and clients, millions of Android and iOS smartphone and tablet users are vulnerable to the Heartbleed security flaw despite Google’s insistence to the contrary about Android.

Continue Reading →

Standard

Pass custom ArrayList from one activity to another activity in Android

In Android, sometimes, we need to pass ArrayList to another activity, this task becomes tricky when ArrayList is of custom type i.e. an ArrayList of students. We can resolve such problem in three ways:

Continue Reading →