Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Java
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;

        }

    }

Thank you in advance and reply soon
Posted
Updated 17-Apr-15 2:49am
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900