On Sat, Jul 24, 2010 at 1:35 PM, xrd <[email protected]> wrote:

> I am confused, however, how I switch from a regular Activity toa 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:
http://developer.android.com/resources/samples/index.html
<http://developer.android.com/resources/samples/index.html>
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/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 [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

Reply via email to