Guest User

Untitled

a guest
Jul 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. public void onListItemClick(ListView parent, View v, int position, long id)
  2. {
  3. if (position == 0) {
  4.  
  5. startActivity(new Intent(this, GetParameter.class));
  6.  
  7. GlobalFunctions.startCommonDate(1, 2, 1);
  8. startActivity(new Intent(this, newone.class));
  9.  
  10. } else if (position == 1) {
  11. GlobalFunctions.startCommonDate(2, 2, 1);
  12. startActivity(new Intent(this, newone.class));
  13.  
  14. } else if (position == 2) {
  15. GlobalFunctions.startCommonDate(3, 2, 1);
  16. startActivity(new Intent(this, newone.class));
  17.  
  18. } else if (position == 3) {
  19. start_Customdate();
  20. }
  21.  
  22. }`
  23.  
  24. startActivity(new Intent(From.this,To.class));
  25.  
  26. Intent intent=new Intent(source.this,destination.class);
  27. startActivity(intent);
  28.  
  29. Intent myIntent = new Intent(FirstActivity.this, secondActivity.class);
  30.  
  31. ListView lv = getListView();
  32. lv.setOnItemClickListener(adapterAndListener);
  33.  
  34. lv.setOnItemClickListener(new OnItemClickListener() {
  35. public void onItemClick(AdapterView<?> parent, View view,
  36. int position, long id) {
  37.  
  38. Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class);
  39. CurrentActivity.this.startActivity(myIntent);
  40.  
  41. }
  42. });
Add Comment
Please, Sign In to add comment