Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Mobile-Applications how set data in a dialog

Have Programming Question? Ask it here!
 
 
 


rajgopal
how set data in a dialog
0 Answer(s)      3 years and 5 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 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
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
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 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 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 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 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 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 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 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
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...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 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
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
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 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 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
jquery dialog box center
jquery dialog box center  How to create dialog box with center alignment in jquery..?   $('my-selector').dialog('option', 'position', 'center
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
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
Java file dialog
Java file dialog In this section, you will learn how to display a dialog... FileDialog that displays the  modal dialog. It blocks the rest of the application... setDirectory("C:/") method. This method opens the dialog with the specified
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
dialog box
dialog box  hi.write an application containing three parallel arrays that hold 10 elements each.the first array holds four digits student ID numbers... averages. use dialog boxes to accept a student ID number and display the student's
Show Font Dialog and Color Dialog
Show Font Dialog and Color Dialog       In this section, you will learn creating color dialog box and font dialog in Java. SWT allows to show Color Dialog and Font Dialog
Popup dialog box in java
Popup dialog box in java  How to display popup dialog box in java?   Dialog Box- A dialog box is an independent small window which appear... can create popup dialog box. Java swing toolkit provide tow types of dialog box
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 size allignment
dialog box size allignment  actually i have 1 button,when clicked on it has to show dialog box containing 14 rows and 3 columns(jtextfield and jlables). i added action listener.is it working fine.but when i resized the dialog
how to show data in database ?
how to show data in database ?  how to show the data in the database to the user in the textbox so that user can modify it and save it again
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
Advertisements
 

 

 

DMCA.com