ok so i have this:
package com.main.Reference;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;
public class Reference extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String[] office = getResources().getStringArray(R.array.Office_array);
setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item,
office));
now what?
On Sat, Jul 10, 2010 at 12:21 PM, Mark Murphy <[email protected]>wrote:
> On Sat, Jul 10, 2010 at 1:14 PM, Raul Martinez <[email protected]> wrote:
> > i have a list view and i want to click one of the items and i want it to
> > open up another list view what should i do to make this happen?
>
> If you are using ListActivity, override onListItemClick(), then in
> there call startActivity() to start up your activity with the next
> ListView.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en