02.03.2011 0:17, xoggoth пишет:
Sorry, still a bit of a novice at this. Was trying to narrow down the
fault by cutting down code and managed to create a completely
different one although the main problem was still as stated, switch to
landscape gives crash
Check the logcat.
You only posted a small portion of the crash stack trace - I know it's
long, but there is a portion that points to the exact line of code in
your project that causes the crash. Look for "Caused by: " and post the
stack trace below that.
It might be easier to run logcat from the command line window (works on
any host OS: Win/Mac/Linux). Just open a command line / shell window,
and type "adb logcat".
and source not found.
This is pretty much normal - you don't have Android framework sources
installed, nor do you need them at this point. The logcat, in 99% of the
cases, has detailed information that's sufficient to resolve a bug (I
feel like a preacher of some kind... yeah, that's it - a logcat preacher).
However, with the buttons
back in and the correct Logcat I have found the fault:
ComponentInfo{com.inverts.uk/com.inverts.uk.InvertsUK}:
java.lang.IllegalStateException: ScrollView can host only one direct
child
It's just like it says - a ScrolView can only have one direct child. If
you need to have a bunch of views that scroll together, make it like this:
<ScrollView>
<LinearLayout
android:orientation="veritcal"
the usual layout_width/height values>
your view 1
your view 2
.... etc ...
</LinearLayout>
</ScrollView>
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
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