Quick Action Demo

Description:
This example of will show how we can generate a Action list or a popup window on a button press.

Algorithm:
1.) Create a new project by File-> New -> Android Project name it QuickActionDemo.
2.) You will see some default code into your main.xml, strings.xml and android manifest file.
3.) Now write following code into your main.xml:

 

 

 

4.) Create ActionItem.java and write following code:

 

 

 

5.) Create NewQAAdapter.java and write following:

 

 

 

6.) Click here to download full code content and other src and res files.

Steps:

1.) Create a project named QuickActionDemo and set the information as stated in the image.

Build Target: Android 2.1
Application Name: QuickActionDemo
Package Name: com.org. QuickActionDemo
Activity Name: QuickActionDemo
Min SDK Version: 7

2.) Open QuickActionDemo.java file and write following code there:

 

 

 

3.) Compile and build the project.
4.) Run on 2.1 simulator for the output.

Output

Leave a Comment:

15 comments
Savin says September 30, 2011

thanks so much !!

Reply
rajesh sanandiya says October 3, 2011

i want to learn SQLite in android
you can help me about SQLite with Example source code

thank you

Reply
TARUN says December 19, 2011

IT’S GOOD

Reply
TARUN says December 19, 2011

IT’S GOOD

Reply
Steven says June 13, 2012

This is an awesome tutorial!!!

Reply
Ramkumar says June 23, 2012

Where is the reference to quickaction is done?

Reply
Mathew Gathoka says August 6, 2012

Thankyou very much. This was very helpful

Reply
Shashant D. says October 16, 2012

Thankyou so much….was able to recreate it, but i want it to look like a grid..say in 2 * 2 matrix form….can you plz tell me how to do that..thanx in advance!! this was really helpful

Reply
Paul Z. says November 27, 2012

Hey you, why in this world didn’t you include the layout for the buttons here? You are referencing them in your code, so you were ought to include them into this so-called ‘tutorial’.

Reply
sacca says February 4, 2013

Hai, this info is very nice. i’m blessed to get this kind of info from you :=)

Reply
haroun says June 13, 2013

thanks.

my problem is solved by this tuto 🙂

Reply
Ihor K. says October 26, 2013

Thaks a lot!! Awesome article!

Reply
mayank says October 31, 2013

Thankyou so much….was able to recreate it, but i want it to look like a grid..say in 2 * 2 matrix form….can you plz tell me how to do that..thanx in advance!! this was really helpful

Reply
mayank says October 31, 2013

can you plz send me gridview code plz

Reply
Add Your Reply