Re: [android-developers] Re: ListView with custom items

2011-03-02 Thread Justin Anderson
I have already replied to the post you hijacked. This is rude. Please stop hijacking posts. On Tue, Mar 1, 2011 at 5:45 AM, nov wrote: > Hi, > > Somebody please help me out. > > I am repeatedly getting "02-28 06:16:40.267: DEBUG/SntpClient(66): > request time failed: java.net.SocketException:

Re: [android-developers] Re: ListView with custom items

2011-03-02 Thread nov
Hi, Somebody please help me out. I am repeatedly getting "02-28 06:16:40.267: DEBUG/SntpClient(66): request time failed: java.net.SocketException: Address family not supported by protocol" in my Sudoku program. Also my program doesn't proceed from these statements even after 1 hour.My files are t

[android-developers] Re: ListView with custom items

2011-03-01 Thread Richard Sámela
On 1. Mar., 10:30 h., Kostya Vasilyev wrote: > > Two ways to fix it: > > - Get rid of "al" in your subclass, pass the data array to ArrayAdapter, > get data items from it as needed (using getItem()); > > - Continue using "al" in your subclass, but then don't use ArrayAdapter, > extend BaseAdapte

Re: [android-developers] Re: ListView with custom items

2011-03-01 Thread Kostya Vasilyev
Richard, You are missing getCount in your adapter, and the base class's version (ArrayAdapter) returns 0 because you didn't pass your data array to super() in the constructor. So the list view thinks there are zero items in the adapter, and does not create any views. The way you have things

[android-developers] Re: ListView with custom items

2011-03-01 Thread Richard Sámela
On 1. Mar., 01:59 h., TreKing wrote: > On Mon, Feb 28, 2011 at 5:53 PM, Richard Sámela wrote: > > Have you confirmed that: > 1 - your array list actually has items and > 2 - your getView function is being called I sure that my ListArray contains items of type MyRecord I tried to write them to