On Sat, Jul 24, 2010 at 1:35 PM, xrd <xrdawson@gmail.com> wrote:
I am confused, however, how I switch from a regular Activity to a ListActivity so I get the convenience methods like setListAdapter()?
Change
"MyActivity extends Activity"
to
"MyActivity extends ListActivity"
Should I be starting with a ListView, and then drawing the other view on top once the app starts by inflating the layout and using it?
What "other view"?
If not, how do I create a ListActivity object inside my app, and where should I create that?
You don't. You extend ListActivity just like a regular activity. Android does the rest for you, assuming you've declared the class in your manifest of course.
If you have a sample application or tutorial that shows how to do this, I would appreciate it.
I'm sure there's one here if you look hard enough:
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment