Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onListItemClick(ListView parent, View v, int position, long id)
- {
- if (position == 0) {
- startActivity(new Intent(this, GetParameter.class));
- GlobalFunctions.startCommonDate(1, 2, 1);
- startActivity(new Intent(this, newone.class));
- } else if (position == 1) {
- GlobalFunctions.startCommonDate(2, 2, 1);
- startActivity(new Intent(this, newone.class));
- } else if (position == 2) {
- GlobalFunctions.startCommonDate(3, 2, 1);
- startActivity(new Intent(this, newone.class));
- } else if (position == 3) {
- start_Customdate();
- }
- }`
- startActivity(new Intent(From.this,To.class));
- Intent intent=new Intent(source.this,destination.class);
- startActivity(intent);
- Intent myIntent = new Intent(FirstActivity.this, secondActivity.class);
- ListView lv = getListView();
- lv.setOnItemClickListener(adapterAndListener);
- lv.setOnItemClickListener(new OnItemClickListener() {
- public void onItemClick(AdapterView<?> parent, View view,
- int position, long id) {
- Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class);
- CurrentActivity.this.startActivity(myIntent);
- }
- });
Add Comment
Please, Sign In to add comment