JOHN JOHNNNY

JOHN JOHNNNY

  • NA
  • 190
  • 134.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;

}

}