sAmUrAi wrote: > I've got a simple app with just two autocompletetextviews in a > linearlayout... as soon as I add a button to it, the application > crashes on startup (and emulator) > > <Button android:id="@+id/btn_submit" > android:text="Get Details" /> > > That's the button and it IS being added under the linear layout just > right. I've worked with Flex a lot but I'm new to Java and Android, so > feel free to get complicated if need be. > > Android throws a process closed unexpectedly error... I don't know how > to debug a java app that well, so let me know what to look for in the > debugger.
The biggest thing you need right now is the stack trace, showing the point of the error and what specifically went wrong. You can get that either via the adb utility (adb logcat *:E) or via DDMS. Both of these are written up in the online Android documentation: http://code.google.com/android/intro/tools.html If you get the stack trace and still don't know why it's crashing, post the trace, your full layout XML, and the Java code where you're using it (e.g., onCreate()), and we may be able to help further. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

