We are not going to write your code for you...

Do what Mark has told you to do.  Create two list activities, override
onListItemClick() and in that method display the second list activity by
calling startActivity().

If you have questions about startActivity() or how to use intents you can do
a search on this group because there is lots of information from questions
that have already been asked.

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Sat, Jul 10, 2010 at 11:28 AM, Raul Martinez <raul5...@gmail.com> wrote:

> 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 <mmur...@commonsware.com>wrote:
>
>> On Sat, Jul 10, 2010 at 1:14 PM, Raul Martinez <raul5...@gmail.com>
>> 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
>> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
>> 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
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> 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
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to