TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
JOHN JOHNNNY
NA
190
140.8k
Opening a dialog from an image/button click on dashboard in
Apr 17 2015 5:11 AM
Am developing an android app with dashboard containing six images.
My question us is it possible for me to implement dialog for each images
Whenever the user clicks each image it pops up a dialog that shows
the user list of options to choose from to navigate to another activity
See the dashboard code below
public void onButtonClicker(View v)
{
Intent intent;
switch (v.getId()) {
case R.id.btnTest1:
intent = new Intent(this, VerbalSection1.class);//I want dialog code here
startActivity(intent);
break;
case R.id.btnTest2:
intent = new Intent(this, CustomRow.class);//I want dialog code here
startActivity(intent);
break;
case R.id.btnTest3:
intent = new Intent(this, CustomRow.class);//I want dialog code here
startActivity(intent);
break;
case R.id.btnTest4:
intent = new Intent(this, CustomRow.class);//I want dialog code here
startActivity(intent);
break;
case R.id.btnTest5:
intent = new Intent(this, CustomRow.class);//I want dialog code here
startActivity(intent);
break;
case R.id.btnTest6:
intent = new Intent(this, CustomRow.class);//I want dialog code here
startActivity(intent);
break;
default:
break;
}
}
Reply
Answers (
0
)
unfortunately app has been stopped.
how to root android tablet with superoneclick