Download Images by AsyncTask in ListView Android Example

Loading images is the most common task for Android apps. Loading image task can be very simple. But if the image size is very big or there are lots of images to be downloaded, it will take a long time. During the downloading progress, all android UI will freeze. Therefore, we have to download images in different thread from main thread (UI thread). In this Android tutorial, I will give an example to show how to use Asynctask to download a list of images.

Download and Try Download Images In AsyncTask Android Example
chart

Read more

Rss Reader App Android Tutorial 1: ListView and ArrayAdapter

Working on a real project is the best way to learn a new programing language. In this tutorial, I will create a RSS Reader application for android step by step. This android application will read rss feed from the website, parse the xml and show all the post in a ListView. So we will cover following android development knowledge:

In this android app example, I will implement a ListView which can show all the post entities from Rss feed. For each list cell view, there are three components, ImageView which is for post featured image, TextView which is for post title, and another TextView which will show post date.

ListView and ArrayAdapter with Data Array
ListView and ArrayAdapter with Data Array

Read more

How to Add Smart Banners in Your Android and iPad Apps

A new ad unit, Smart Banner, is introduced after AdMob v6.0. This new ad banner make us able to render multiple size of ads on any screen size, regardless it is Portrait or landscape. Lack of screen size standard, there are too many different screen size mobiles and tablets we are using in the world. It make us too hard to create our apps to fit with all the types of screen size.

Smart Banner help us to solve the screen size problem. It smartly detect the width and height of the phone in current orientation and decide to show the most suitable size of ads in our apps. One piece of code can solve the problem to show different size ads in different device where our apps are running. For example, the Smart Banner can show either 320×50 or 360×50 size ads in portrait mode. While in landscape mode, it will show an ad in 480×32 or 682×32 which is depending on the height of the phone.

Download and Try The Example App
AdmobSmartBannerExampleQR

Read more

Guide for Beginners: Start to Monetize Your Apps with AdMob

Several friends of mine are creating Apps to earn money on both Android and IOS platforms. Most of them provide their apps for free and use AdMob to monetize their apps. In this business model, they have meet lots of problems in the past few months, and there are still some issues they are facing now. After talking with these guys, I think it will be very helpful to share some tips about monetize free apps by AdMob with those people who want to try but haven’t tried yet.
Read more

How to Add AdMob Interstitial Ads in Your Android Apps

Sometimes, the Banner Ads are too small to monetize your apps maximally. One reason is that Banner Ads are too small. Because of this, the click rate is quit low even the fill rate are near 100%. Banner Ads size are limited in 4 types:

Admob Banner Ads Size
Size Device
320 x 50 Phones and Tablets
300 x 250 Tablets
468 x 60 Tablets
728 x 90 Tablets

To increase the click through rate, there is an alternative ads type to choose. Interstitials, rich HTML 5 experiences ads, can present a full screen ads immediately on your phone and tablet screen. Without the size limitations, the interstitial ads make them more expensive and subjects to impression constraints. The bigger ads size is, the more expensive it is, the higher click through rate and you earn more from your apps. The following example will show you how to add interstitial ads in your android apps.
Read more