the error is the view of the ArrayList<Contact> todoItems =   new
ArrayList<Contact>(); , when i try to view the content of the array
with รง
  final ArrayAdapter<Contact> aa;
    aa = new ArrayAdapter<Contact>(this,
 
android.R.layout.simple_list_item_1,
                                  todoItems);
    // Bind the array adapter to the listview.
    myListView.setAdapter(aa);
it crashes... i don't know how to fix it or if i have to override the
ArrayAdapter to get view the content. I know that part of code is the
one wich make it crash 'because when i put the code in comments it
doesn't crash or maybe i'm getting wrong the contacts (I have all type
of contacts in the emulator)

On 9 feb, 22:41, TreKing <[email protected]> wrote:
> On Wed, Feb 9, 2011 at 11:43 AM, Abalufaske <[email protected]> wrote:
> > Hi, with the code above I got an unexpected error, how can I fix it?
>
> Instead of pasting a gigantic blob of unformatted code that no one is going
> to read, please explain what "unexpected error" means and what you have
> tried to fix it yourself.
>
> --------------------------------------------------------------------------- 
> ----------------------
> 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