Bas,
Splitting complex *statements* is what I was suggesting.
Now, if you wanted to also place classes into separate files, well, that
might be helpful too.
Eclipse can highlight code blocks, matching "{" and "}" characters. This
can help you spot mismatches really easily. You can do this by double
clicking at or to the right of the opening or closing curly brace.
For lists, probably the easiest way to get started is to use ListActivity.
Getting ListView to look right in a dialog can be a bit tricky if you
consider Android 3.0 and above. Sherlock might make it easier, but I
haven't used it, sorry.
Perhaps going through a few Java tutorials can be useful too.
-- K
2012/5/5 Bas Verhoog <[email protected]>
> Thanks for the suggestions so far.
>
> I have been looking at multiple other examples and codes, but couldn't
> really make sense of them, seeing as there aren't any code example for a
> List in a Dialog.
>
> How should I go about splitting this into another activity? Just make an
> Activity with a ListView and the required Strings, then use .setTheme to
> make it Theme.Sherlock.Dialog?
>
> As Mr. Vasilyev said, I have been trying to solve the errors for a while,
> including using Eclipse's built-in error-solving, but that isn't really
> getting me anywhere and only leads to more red squiggly lines (:P)
> underneath my code. My general approach is to fix them top-to-bottom,
> however that doesn't work (see previous sentence).
>
> I'll take a look at changing and optimizing the code like you said.
> Counting is what I've been doing, but there were (are) too many brackets
> and semi-colons et cetera for me to really keep it together.
>
> "s" Is a remainder of the code I had earlier, removing of which didn't
> help and generated more errors, leaving me hopeless and stopping the work
> on that part...
>
> Lastly, I would like to apologize (or apologise, that depends :)) for my
> late reply. I didn't get an email about any replies, and final exams, along
> with some other things that needed my attention, have me already working my
> ass off without this app.
>
> Regards,
>
> Bas
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en