
Button button = (Button) findViewById(R.id.button1); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) {
setContentView(R.layout.yourorderdialog);
AlertDialog.Builder builder =new AlertDialog.Builder(Menus.this);
builder.setTitle("Order");
Enumeration e=ht.keys();
Object obj;
obj = e.nextElement();
String quantity=(String) obj;
String instruction=(String) ht.get(obj);
System.out.println(quantity);
System.out.println(instruction);
TextView tv=(TextView)findViewById(R.id.tv);
tv.setText(quantity,BufferType.NORMAL);
TextView tv1=(TextView)findViewById(R.id.tv1);
tv1.setText(instruction,BufferType.NORMAL);
builder.setPositiveButton("pay", null);
builder.show();
}
});
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.