rajgopal
how set data in a dialog
0 Answer(s)      4 years and 6 months ago
Posted in : MobileApplications

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();

        }
    });
}
Advertisement
View Answers









Related Tutorials/Questions & Answers:
how set data in a dialog
how set data in a dialog  Button button = (Button) findViewById(R.id.button1); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { setContentView
How can I dynamically load user-entered data as content of jquery dialog?
How can I dynamically load user-entered data as content of jquery dialog? ... whatelse I am missing. Kindly guide me how to solve my project please. I cannot make the value of user-entered name to show in the dialog content. I am also trying
Advertisements
how to call the print dialog box through JMenuItem
how to call the print dialog box through JMenuItem  What is the way to call the print dialog box through JMenuItem to print the current page...could you please help me by sending code
How to call print dialog box through JMenuItem?
How to call print dialog box through JMenuItem?  What is the way to call the print dialog box through JMenuItem to print the current page like we can do in javascript by calling window.print() function
JDialog to create a customized dialog box for entering text data
JDialog to create a customized dialog box for entering text data   Hello sir I wanted to know the code to generate a JDialog to create a customized dialog box for entering text data. The dialog can be split into panes, left pane
how to let img act as file dialog box?
how to let img act as file dialog box?  dear sir: I'm trying to add the code input type="file" to my website, but i do not want the default design which is the text box plus the button written in it browse,NO. what i want
How can i Dispose Dialog box From LWUIT Component >
How can i Dispose Dialog box From LWUIT Component >  Hi All, i... to show a dialog when i press key "0". again if i press key "4" the Dialog should...*; public class javaForm extends Component implements ActionListener { Dialog
How to select default FileFilter when creating a JFileChooser dialog?
How to select default FileFilter when creating a JFileChooser dialog? ... directory say "c:\mydirectory" when browse button is clicked. How to select default FileFilter when creating a JFileChooser dialog? Thanks   Hi
how to send joption panel dialog from server to multipleclients using sockets?
how to send joption panel dialog from server to multipleclients using sockets?  how to send joption panel dialog from server to multipleclients using sockets?like we get a first message with 2 buttonsand on clicking one button we
how to send joption panel dialog from server to multipleclients using sockets?
how to send joption panel dialog from server to multipleclients using sockets?  how to send joption panel dialog from server to multipleclients using sockets?like we get a first message with 2 buttonsand on clicking one button we
how to send joption panel dialog from server to multipleclients using sockets?
how to send joption panel dialog from server to multipleclients using sockets?  how to send joption panel dialog from server to multipleclients using sockets?like we get a first message with 2 buttonsand on clicking one button we
how to set class path
how to set class path  how to set class path in java
How to set the cursor to wait?
How to set the cursor to wait?  How to set the cursor to wait
How to set cookies?
How to set cookies?  How to set cookies
how to make an image act like upload dialog box
how to make an image act like upload dialog box  dear sir: i have made HTML page, in that page the user shuuld be able to upload any type of file... the upload dialog box to be accessed from an image, like an attachment image. i
how to make an image act like upload dialog box
how to make an image act like upload dialog box  dear sir: i have made HTML page, in that page the user shuuld be able to upload any type of file... the upload dialog box to be accessed from an image, like an attachment image. i
dialog box
dialog box  hello. write an application that displays a series... possible numeric choice answers. at the end of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set
dialog box
dialog box  hello. write an application that displays a series... possible numeric choice answers. at the end of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set
dialog box
dialog box  hello. write an application that displays a series... possible numeric choice answers. at the end of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set
dialog box
dialog box  hello. write an application that displays a series... possible numeric choice answers. at the end of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set
dialog box
dialog box  hello. write an application that displays a series... possible numeric choice answers. at the end of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set
dialog box
dialog box  hello. write an application that displays a series... possible numeric choice answers. at the end of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set
how to set the values in jsp
how to set the values in jsp  how to set the values text boxs in jsp frm dbase via servlet
how to set background image
how to set background image  how to set image in background in that image i want over lay text how it possible in jsp? using flash image how it is overlayed in jsp page? thanks
dialog box
of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set of questions -quit continue to accept the sets...dialog box to ask to quit or continue  hello. write an application
dialog box
of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set of questions -quit continue to accept the sets...dialog box to show latest question  hello. write an application
How to set NSZombieEnabled iPhone
How to set NSZombieEnabled iPhone  Hi, In my application I have to find and fix the object release issue. How to set NSZombieEnabled iPhone to find the bugs? Thanks   Hi, Please see the thread NSZombieEnabled iPhone
UINavigationController how to set title
UINavigationController how to set title  I want to set the tile of the UINavigationController when a view is displayed once new view is pushed. Thanks   Hi, You should use the following code
dialog box
enter another set of responses to the same set of questions  hello.... at the end of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set of questions -quit
How to set target to videos??
How to set target to videos??  Hi, i am developing project in HTML 5 with videos so, i am dispalaing videos in two table coloumn,if the video in one coloumn is clicked,it should be played in another coloumn. plzz suggest any idea
dialog box
of the interview, use a dialog box to ask whether the user wants to - enter another set of responses to the same set of questions -quit continue to accept the sets... question indicate how many users chose the first option,second option and so