Click listerner for list view

Description

User has deleted their subject information Flashcards on Click listerner for list view, created by Deleted user on 13/11/2016.
Deleted user
Flashcards by Deleted user, updated more than 1 year ago More Less
Jason Manns
Created by Jason Manns about 8 years ago
Jason Manns
Copied by Jason Manns about 8 years ago
4
0

Resource summary

Question Answer
You have a ListView of names set up that displays a list of 10 usernames. Write the click listener so when a named is clicked a new activity is started and and sent which name was clicked. @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(getApplicationContext(), Profile.class); intent.putExtra("friend", friends.get(position)); startActivity(intent); }
Show full summary Hide full summary

Similar

This smart kitchen app wants to end your meal-planning woes
Andrew Kowalski
ANDROID
Marco Masabanda
Los sistemas operativos
JUAN JOSE GOMEZ PARRA
Android Trainee Question
Samrat_Kumar_Dey
Co-routines
ritesh singh
Guidelines m-learning
PAUL ANDRE ROMERO ALVARADO
Android
glupita28036615
Sistema android
thalia buenaño
Android
giss.93.21
sistema android
Walter Ivan
ANDROID
nellyguaman30