Posts Tagged ‘ activity ’

Starting and Retrieving data from activities using startActivityForResult() method in Android

August 22, 2012
By
Opening and returning data from an Activity

In this article we will create an Android application which demonstrates how to start an activity which returns data on finishing its execution. The activity that returns the data has to be started by the method startActivityForResult() and the caller activity should override the method onActivityResult(). The called activity can set data using an...

Read more »

Image SlideShow using ViewFlipper in Android

August 17, 2012
By
Slideshow of images by ViewFlipper

In this article we will create an Android application which slides a fixed set of images using ViewFlipper. The application facilitates users to Start or Stop slideshow using a button click. On clicking the “Start Slideshow” button, the images will be started to slide from left to right automatically. Please refer the article titled...

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 »

Access an activity using explicit intents in Android

June 22, 2012
By
Explicit Intent in action

In simple terms an intent is an object used to access a component from an activity. The component can be an activity or a service or a broadcast receiver. We can classify intents into two category such as explicit intents and implicit intents. In the case of explicit intent, the target component is accessed...

Read more »

Opening an activity on a button click in Android

June 19, 2012
By
Opening an activity on a button click in Android

In this article, we will see , how to open an activity from the main activity by a button click. 1. Create a new Android Project namely OpenActivity 2. Select build target for the application 3. Enter application details 4. Open and update the file /res/values/strings.xml with the highlighted code given below 5. Create...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner