Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Dirk Bruere at NeoPax Newsgroups: comp.lang.java.programmer Subject: Re: ArrayAdapter Date: Thu, 31 Mar 2011 15:32:01 +0100 Organization: Dirk Bruere at Neopax Lines: 28 Message-ID: <8vjhisFai4U1@mid.individual.net> References: <8vi26oFvh2U1@mid.individual.net> <8vj6efFla6U1@mid.individual.net> <8vjevuFn7mU1@mid.individual.net> Reply-To: dirk.bruere@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 7BkBN3iRHSiDITz3HqkFqAkcLU3J6qfeu+SZqm8cv8gSdlKe6j Cancel-Lock: sha1:P1HevJSGKu9GzQx0lEUHZ81uXWU= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <8vjevuFn7mU1@mid.individual.net> Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2655 On 31/03/2011 14:47, Nigel Wade wrote: > On 31/03/11 12:21, Dirk Bruere at NeoPax wrote: > >> private static void updateRadioTitles( ) { >> >> ... >> radioTitleAdapter.add(titleStr); //PROBLEM >> radioTitleAdapter.notifyDataSetChanged(); //PROBLEM >> } >> >> How do I get at radioTitleAdapter? >> > > You ask whatever object knows where it is to let you have a copy of a > reference to it. > > Since your code doesn't actually show that information I can't give > specific answers. But presumably some instance of class controller [sic] > knows where one can be found, since the onCreate() method of that class > creates one. > Yes -I have worked out that bit but do not know what it is, esp since other examples like ListView involve multiple casts -- Dirk http://www.neopax.com/technomage/ - My new book - Magick and Technology