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

        }
    });
}
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 set cookies?
How to set cookies?  How to set cookies
How to set the cursor to wait?
How to set the cursor to wait?  How to set the cursor to wait
how to set class path
how to set class path  how to set class path in java
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
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 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
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
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
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
how to set image - EJB
how to set image   public ActionForward execute(ActionMapping mapping... in this pdf, how can i set pls help me sir, my image in E:/rose.jpg,how can set this jpg to my pdf file
how to set the value of textfield constant
how to set the value of textfield constant  how to set the value of textfield constant
how to set folder size in php
how to set folder size in php  hi , i know how to create folder but i dont know how to set size for folder did u know means tell me. thankyour
how to set time in jsp page
how to set time in jsp page   I need code for set the time in jsp code .iam using struts frame work back end oracle 10g ide is eclipse 6.0
how to set size of button,textfield.
how to set size of button,textfield.  how we set size of button... large how to set as a preferd size in the panel or frame .when we click maximize button not effect on text or button to their of size the set on the prefered
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 to set Marathi font to Label??
How to set Marathi font to Label??  Hello, I am doing one project in java-Swing Farm Management i want to set Marathi label in that so how i can? plzzzz help me its urgent
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 placeholder in uitextfield programmatically?
How to set placeholder in uitextfield programmatically?  Can any one tell me about the example code for setting the placeholder in a UITextField programatically? Thanks   HI, Its easy. Use the following code
how to set value of dropdown list
how to set value of dropdown list  Hello Sir, I'd solved the earlier problems somehow but now this time another problem arised when I want to pass the value from a link to a dropdown list. I want to set the dropdown list selected
how to set value of dropdown list
how to set value of dropdown list  Hello Sir, I'd solved the earlier problems somehow but now this time another problem arised when I want to pass the value from a link to a dropdown list. I want to set the dropdown list selected
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
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
How to add a columns with a button set to a Jtable built with database result set
How to add a columns with a button set to a Jtable built with database result set  hi, i have to build a gui to display account numbers and account... that button column to the table which is built with database result set. i would thank
how to set a image in frame? - Swing AWT
how to set a image in frame?  how to set a image in frame using swing
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
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 DISPLAY 2 SET OF CONTROLS
HOW TO DISPLAY 2 SET OF CONTROLS  i can be display one row by selecting value from drop down box BUT ALSO i need to display 2 rows by selecting value from drop down box of textbox's and radio button,drop down box using this code
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 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 set CLASSPATH in Java?
What is CLASPATH in Java and how to set it?   ... of PATH and CLASSPATH ? How it is set in environment variable?. ANS... on okADS_TO_REPLACE_16 How to set System Classpath : Java class path
how to set fetch size for jdbc odbc driver
how to set fetch size for jdbc odbc driver  What is the default fetch size for the JDBC ODBC driver and how can i fetch a set of results for JDBC... that it may handle out of memory issues. When you set fetch size 100 , the number
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
dialog box
. 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 continue... the results of each question indicate how many users chose the first option,second
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
How to set heap memory in cassandra on docker
How to set heap memory in cassandra on docker  I am trying to run cassandra on docker and its throwing error asking to set the heap memory..._SIZE=2048M How to set the heap memory in cassandra on docker? Thanks  
How set the height of Thumb in Vertical scrollbar..?
How set the height of Thumb in Vertical scrollbar..?  I have created a Vertical scrollbar. I have removed up arrow and down arrow. also i have... as image size. How can i do that..? PDR
How to set pdf background color.
How to set pdf background color. In this example, you will see how to set back ground color of pdf in struts2.  index.jsp <html>ADS_TO_REPLACE_1 <head> <title>SetBackGround</title> </head>
jquery dialog box center
jquery dialog box center  How to create dialog box with center alignment in jquery..?   $('my-selector').dialog('option', 'position', 'center

Ads