Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Intent i = new Intent(getApplicationContext(), addMatchActivity.class);
  2. myLocListener = new MyLocationListener();
  3. mLocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, myLocListener);
  4. i.putExtra("name", name);
  5. i.putExtra("regID", regId);
  6. startActivity(i);
  7.  
  8. public void onCreate(Bundle savedInstanceState){
  9. super.onCreate(savedInstanceState);
  10. setContentView(R.layout.activity_add_match);
  11.  
  12. context = getApplicationContext();
  13.  
  14. matchName = (EditText) findViewById(R.id.txtMatchName);
  15. matchDate = (EditText) findViewById(R.id.txtDate);
  16. matchHour = (EditText) findViewById(R.id.txtHour);
  17. matchPlayers = (EditText) findViewById(R.id.txtPlayers);
  18. lblMsg = (TextView) findViewById(R.id.lblMsg);
  19. btnAdd = (Button) findViewById(R.id.btnAddMatch);
  20. btnBack = (Button) findViewById(R.id.btnBack);
  21. btnLocation= (Button) findViewById(R.id.btnLocation);
  22.  
  23. Intent i = getIntent();
  24.  
  25. myName = i.getStringExtra("name");
  26. regID = i.getStringExtra("regID");
  27. aController = (Controller) getApplicationContext();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement