Guest User

Untitled

a guest
Jun 19th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1.  
  2. public void shareTypes() {
  3. alert = new AlertDialog.Builder(this);
  4.  
  5. alert.setTitle("Other Spoke Search");
  6. alert.setCancelable(false);
  7. // Set an EditText view to get user input
  8.  
  9. alert.setView(input);
  10.  
  11. alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
  12. public void onClick(DialogInterface dialog, int whichButton) {
  13. value = input.getText().toString();
  14.  
  15. new serchdata().execute(value);
  16. listlinearlayout.setVisibility(View.GONE);
  17. textlinearlayout.setVisibility(View.VISIBLE);
  18.  
  19. // Do something with value!
  20. }
  21. });
  22.  
  23. alert.setNegativeButton("Cancel",
  24. new DialogInterface.OnClickListener() {
  25. public void onClick(DialogInterface dialog, int whichButton) {
  26. // Canceled.
  27.  
  28. }
  29. });
  30.  
  31. alert.show();
  32. }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment