I tried you suggestion but got an error message. So I tried myListView.setSelection(1);
No error message but it doesn't work ----- Original Message ----- From: Martin Obreshkov To: [email protected] Sent: Tuesday, January 26, 2010 11:15 PM Subject: Re: [android-developers] How to select an item in a listview by code ListView.setSelected(int position) On Tue, Jan 26, 2010 at 3:12 PM, MMC2 <[email protected]> wrote: How do you select an item in a listview by code -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en ------------------------------------------------------------------------------ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.730 / Virus Database: 271.1.1/2645 - Release Date: 01/26/10 05:36:00 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

