Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Intent i = new Intent(getApplicationContext(), addMatchActivity.class);
- myLocListener = new MyLocationListener();
- mLocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, myLocListener);
- i.putExtra("name", name);
- i.putExtra("regID", regId);
- startActivity(i);
- public void onCreate(Bundle savedInstanceState){
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_add_match);
- context = getApplicationContext();
- matchName = (EditText) findViewById(R.id.txtMatchName);
- matchDate = (EditText) findViewById(R.id.txtDate);
- matchHour = (EditText) findViewById(R.id.txtHour);
- matchPlayers = (EditText) findViewById(R.id.txtPlayers);
- lblMsg = (TextView) findViewById(R.id.lblMsg);
- btnAdd = (Button) findViewById(R.id.btnAddMatch);
- btnBack = (Button) findViewById(R.id.btnBack);
- btnLocation= (Button) findViewById(R.id.btnLocation);
- Intent i = getIntent();
- myName = i.getStringExtra("name");
- regID = i.getStringExtra("regID");
- aController = (Controller) getApplicationContext();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement