Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin3!goblin.stu.neva.ru!i.newsfeed.yosemite.net!newsfeed.yosemite.net!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: ArrayAdapter Followup-To: comp.lang.java.programmer Date: Fri, 01 Apr 2011 13:35:25 +1300 Organization: Geek Central Lines: 18 Message-ID: References: <8vi26oFvh2U1@mid.individual.net> <8vj6efFla6U1@mid.individual.net> <8vkjl3Fa5sU2@mid.individual.net> NNTP-Posting-Host: 118-92-92-183.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: lust.ihug.co.nz 1301618125 3764 118.92.92.183 (1 Apr 2011 00:35:25 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Fri, 1 Apr 2011 00:35:25 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2681 In message <8vkjl3Fa5sU2@mid.individual.net>, Dirk Bruere at NeoPax wrote: > On 01/04/2011 01:06, Lawrence D'Oliveiro wrote: > >> In message<8vj6efFla6U1@mid.individual.net>, Dirk Bruere at NeoPax wrote: >> >>> How do I get at radioTitleAdapter? >> >> Pass it to the BlinkAPI constructor. >> > I need to create it in BlinkAPI or I will not be able to add data to the > adapter But in the code you posted, the ListView that the radioTitleAdapter is attached to, as well as the radioTitleAdapter itself, are created in the mainline “controller” class for the Activity. All you have to do is move the call to the BlinkAPI constructor down to after that, so you can pass the radioTitleAdapter to it.