android - What should I do to activate ListView in class which not extends ListActivity? -


i have http://developer.android.com/resources/tutorials/views/hello-listview.html tutorial , want same in class. don't want in activity class!!!

//you need extends activity

and in oncreate() method

you need listview id

listview mylistview=(listview)findviewbyid(r.id.mylist); mylistview.setadapter(...); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -