Android

Programs and news related with Google’s Android Mobile Operating System

A Simple Fragment Application with backward compatibility in Android

June 30, 2012
By
Hello Fragment Featured

In this article , we will create an Android application which displays a text “HelloFragment” in the screen where the text is displayed by a fragment. Actually fragments are new concepts which are supported from Android 3.0 onwards. But by using the backward compatibility library we can use fragments from Android 1.6 onwards. 1....

Read more »

Different layouts for landscape and portrait orientations in Android

June 29, 2012
By
Different layouts for landscape and portrait orientations

In this article we will create an Android application which uses different layouts for landscape and portrait views of the device 1. Create an Android project namely “LandPortView” 2. Select Android build target 3. Enter application details 4. res/values/strings.xml 5. Create a new folder namely “layout-land” under the folder “res” 6. Create a layout...

Read more »

Different layouts for different screen sizes in Android

June 29, 2012
By
Different layouts for different screen sizes in Android

Android ( Version less than 3.2 or API Level less than 13 )  classifies the screen sizes into four different groups such as small, normal, large and extra large. The resolutions of small, normal, large and extra large are at least 426 x 320 , 470 x 320 ,  640 x 480 and 960...

Read more »

Getting Screen properties in an Android application

June 28, 2012
By
Screen Properties

In this article, we will create an Android application which will show the screen’s display properties like screen width, screen height and density. 1. Create an Android project namely “ScreenDemo” 2. Select Android build target 3. Enter application details 4. res/layout/main.xml 5. src/in/wptrafficanalyzer/screendemo/MainActivity.java 6. Application in execution 7. Download 8. Reference http://developer.android.com/guide/index.html How to...

Read more »

Sending SMS in background from an Android application

June 26, 2012
By
Sending SMS in background from an Android application

In this article we will create an application which will sent sms message in background. This application will make use the class android.telephone.SmsManager which facilitates to send sms messages to intended parties. We also uses the broadcast receivers to get the status of sms message which is sent. An alternative to this application is...

Read more »

Opening SMS Compose Screen from an Android Application

June 25, 2012
By
Opening SMS Compose Screen from an Android Application

In this article, we will create an application which opens an SMS Compose Screen on a button click. 1. Create an Android project 2. Select build target 3. Enter application details 4. res/values/strings.xml 5. res/layout/main.xml 6. src/in/wptrafficanalyzer/smscompose/MainActivity.java 7. Application in execution 8. Download 9. Reference http://developer.android.com/guide/index.html How to hire me?I am George Mathew, working...

Read more »

Opening a web browser from an Android application

June 25, 2012
By
Opening a web browser from an Android application

In this article we will create an application which will open a user input website in a web browser. In order to open a web browser, we will create an intent object with ACTION_VIEW as action and data with “http” in the url. Since http request is invoked by the external browser, no explicit...

Read more »

Call a number directly from an Android application

June 25, 2012
By
Call a number directly from an Android application

In this article we will create an application which can call a telephone number directly from the application. In order to call a number we will make use the standard action called ACTION_CALL. An application can  call a number direclty if  and only if  the necessary permission is explicitly granted. For this we need...

Read more »

Opening phone dialer from an Android application

June 24, 2012
By
Opening phone dialer from an Android application

Phone dialer is an activity available with Android operating system to call a number. In this article, we will create an application which invokes the dialer on a button click.  Android system provides a standard action name called “ACTION_DIAL” to invoke the dialer. We will make use this action to invoke the the dialer...

Read more »

Access an activity using implicit intents in Android

June 23, 2012
By
Access an activity using implicit intents in Android

In Android operating system, intents are used for inter component communication. They acts as a messenger from one component to another. An intent may carry information such as target component name, filter action name, data , filter category , extras and flags. If an intent carry target component name, then that alone is used...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner