Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9292
| From | bob <bob@coolgroups.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: nested class madness |
| Date | 2011-10-28 23:25 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <42a910e3-c751-4166-b685-f5e2bdf948d0@t8g2000yql.googlegroups.com> (permalink) |
| References | <5bee3b28-8226-4c21-92d3-f85db5810d3c@l19g2000yqc.googlegroups.com> <278rn8-4f2.ln1@news.simpsonst.f2s.com> |
On Oct 28, 11:17 am, Steven Simpson <s...@domain.invalid> wrote:
> 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
You're right.
This is where I got the code from:
http://developer.android.com/guide/topics/ui/dialogs.html
Looks like Google goofed.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
nested class madness bob <bob@coolgroups.com> - 2011-10-28 10:40 -0700
Re: nested class madness Steven Simpson <ss@domain.invalid> - 2011-10-28 19:17 +0100
Re: nested class madness bob <bob@coolgroups.com> - 2011-10-28 23:25 -0700
Re: nested class madness Roedy Green <see_website@mindprod.com.invalid> - 2011-10-29 06:38 -0700
Re: nested class madness Roedy Green <see_website@mindprod.com.invalid> - 2011-10-28 22:49 -0700
csiph-web