Hi Nagendra,

You could use  getListView().setSelection(int position) in the
OnCreate()/OnResume() of your Activity.
Note that you will not see a highlighted selection initially when your List
is displayed, but if you try to navigate through the items in your list, the
navigation will start from the position selected in setSelection() method.

Thanks,
Megha

On Thu, Apr 3, 2008 at 9:58 AM, Raja Nagendra Kumar <[EMAIL PROTECTED]>
wrote:

>
> Hi,
>
> in ListActivity UI, how to pre select an item in the list, so that as
> soon as the list gets displayed, that item would be selected.
>
> Regards,
> Nagendra
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to