Activities and ListActivities with button and lists

by ~ TreKing » Fri, 23 Apr 2010 10:37:21 GMT


Sponsored Links
 



Cool, me too! Well, mostly buses, but same diff.



Sure you can.



No, you don't HAVE to, but extending ListActivity does simplify things if
your activity is predominantly list-oriented.



Crashes HOW? We can't read your mind (or code).

 By the way, if I put
"public class NextTrain extends Activity {"

Did you actually add a ListView to the Activity?



I can try.
If you extend ListActivity you can add a header view to your ListView
containing your two buttons.
Alternatively if you extend Activity, you can create a layout with your two
buttons and a ListView.



You're welcome in advance.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--



Other Threads

1. Orientation change of gsm re-initializes the application

Thanks!!






-- 

2. Orientation change of gsm re-initializes the application



Add android:screenOrientation="portrait" to the <activity> element of
the AndroidManifest.xml file, and that activity will stay locked in
portrait mode.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

-- 

3. Orientation change of gsm re-initializes the application

4. Speech Recognition makes a beep when the user Cancels. This is bad.

5. ArchOS emulator?

6. JSONObject text must begin with '{' at character 1

7. Bounding Geometry in Maps?