Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Steven Simpson Newsgroups: comp.lang.java.programmer Subject: Re: nested class madness Date: Fri, 28 Oct 2011 19:17:38 +0100 Organization: Aioe.org NNTP Server Lines: 23 Message-ID: <278rn8-4f2.ln1@news.simpsonst.f2s.com> References: <5bee3b28-8226-4c21-92d3-f85db5810d3c@l19g2000yqc.googlegroups.com> NNTP-Posting-Host: 3JnaVNumoybW/sOwRjlcjw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9282 On 28/10/11 18:40, bob wrote: > Can someone explain why I get this error? > > ProgressThread cannot be resolved to a type You should indicate where the error appears too. > @Override > protected void onPrepareDialog(int id, Dialog dialog) { > switch(id) { > case PROGRESS_DIALOG: > progressDialog.setProgress(0); > progressThread = new ProgressThread(handler); > progressThread.start(); > } This looks like the whole of onPrepareDialog, but it's missing a brace. Reformat the entire file, and you'll see that ProgressThread is nested within this function, and is not a direct member of the enclosing class. -- ss at comp dot lancs dot ac dot uk