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



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


rajgopal
how set data in a dialog
0 Answer(s)      3 years and 10 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 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
Advertisements
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 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 set class path
how to set class path  how to set class path in java
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
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
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 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
 

 

 

DMCA.com