From: Miggi <mig...@go...> - 2011-03-22 12:18:08
|
Hello Wolfgang, thanks for your efforts, but the application still won't run. I've updated XMLVM to head revision, deleted the text attribute in checkbox and tried again to cross-compile the project. Compilation doesn't throw any error messages but after starting the project in the iPhone simulator it terminates immediately. That's how the checkbox in main.xml look like: <CheckBox android:id="@+id/CheckBoxResponse" android:layout_height="wrap_content" android:layout_width="fill_parent"> </CheckBox> And that's the new stack trace I received: *** Call stack at first throw: ( 0 CoreFoundation 0x030c8b99 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x02ebd40e objc_exception_throw + 47 2 de.android.ContactForms 0x0007fcf6 +[android_internal_Assert CHECK___boolean:] + 0 3 de.android.ContactForms 0x000cfbf1 -[android_widget_CheckBox setText___java_lang_String:] + 132 4 de.android.ContactForms 0x00107ded -[android_widget_TextView parseTextViewAttributes___android_util_AttributeSet:] + 322 5 de.android.ContactForms 0x001068a5 -[android_widget_TextView initTextView___android_content_Context_android_util_AttributeSet::] + 195 6 de.android.ContactForms 0x00106796 -[android_widget_TextView __init_android_widget_TextView___android_content_Context_android_util_AttributeSet::] + 350 7 de.android.ContactForms 0x000cdcf1 -[android_widget_Button __init_android_widget_Button___android_content_Context_android_util_AttributeSet::] + 142 8 de.android.ContactForms 0x000cff67 -[android_widget_CompoundButton __init_android_widget_CompoundButton___android_content_Context_android_util_AttributeSet::] + 142 9 de.android.ContactForms 0x000cf2d1 -[android_widget_CheckBox __init_android_widget_CheckBox___android_content_Context_android_util_AttributeSet::] + 142 10 CoreFoundation 0x030395cd __invoking___ + 29 11 CoreFoundation 0x030394a1 -[NSInvocation invoke] + 145 12 de.android.ContactForms 0x00016cdd -[java_lang_reflect_Constructor newInstance___java_lang_Object_ARRAYTYPE:] + 518 13 de.android.ContactForms 0x00089a40 -[android_internal_LayoutParser createView___java_lang_String_android_content_Context_android_util_AttributeSet:::] + 1027 14 de.android.ContactForms 0x0008861f -[android_internal_LayoutParser didStartElement___org_xmlvm_iphone_NSXMLParser_java_lang_String_java_lang_String_java_lang_String_java_util_Map:::::] + 1000 15 de.android.ContactForms 0x0002b47f -[org_xmlvm_iphone_NSXMLParserDelegate parser:didStartElement:namespaceURI:qualifiedName:attributes:] + 130 16 Foundation 0x005c2999 _startElementNs + 1478 17 libxml2.2.dylib 0x03d39ac0 xmlParseXMLDecl + 8539 18 libxml2.2.dylib 0x03d423c4 xmlParseChunk + 1955 19 Foundation 0x005c1baa -[NSXMLParser parse] + 321 20 de.android.ContactForms 0x0002b3a4 -[NSXMLParser(cat_NSXMLParser) parse__] + 36 21 de.android.ContactForms 0x0008761a +[android_internal_LayoutManager getLayout___android_content_Context_int_android_view_ViewGroup:::] + 533 22 de.android.ContactForms 0x000c3b5b -[android_view_Window setContentView___int:] + 203 23 de.android.ContactForms 0x00041eaf -[android_app_Activity setContentView___int:] + 137 24 de.android.ContactForms 0x00002225 -[de_android_ContactForms_ContactForm onCreate___android_os_Bundle:] + 157 25 de.android.ContactForms 0x00040bea -[android_app_Activity create___java_lang_Object:] + 600 26 Foundation 0x00507978 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 229 27 Foundation 0x00519f86 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 184 28 de.android.ContactForms 0x00029c13 +[NSObject(cat_org_xmlvm_iphone_NSObject) performSelectorOnMainThread___java_lang_Object_java_lang_String_java_lang_Object_boolean::::] + 175 29 de.android.ContactForms 0x00040660 -[android_app_Activity xmlvmCreate___android_os_Bundle:] + 173 30 de.android.ContactForms 0x0004a883 -[android_content_Context startActivityForResult___android_content_Intent_int::] + 1528 31 de.android.ContactForms 0x0004ac76 -[android_content_Context startActivity___android_content_Intent:] + 118 32 de.android.ContactForms 0x0004610c -[android_app_Application onCreate__] + 707 33 de.android.ContactForms 0x0007c3b5 -[android_internal_AndroidAppLauncher applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 140 34 de.android.ContactForms 0x0002fd65 -[org_xmlvm_iphone_UIApplicationDelegate applicationDidFinishLaunching:] + 43 35 UIKit 0x00789f80 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1252 36 UIKit 0x0078c3b0 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 346 37 UIKit 0x007963ec -[UIApplication handleEvent:withNewEvent:] + 1958 38 UIKit 0x0078eb3c -[UIApplication sendEvent:] + 71 39 UIKit 0x007939bf _UIApplicationHandleEvent + 7672 40 GraphicsServices 0x0360a822 PurpleEventCallback + 1550 41 CoreFoundation 0x030a9ff4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 42 CoreFoundation 0x0300a807 __CFRunLoopDoSource1 + 215 43 CoreFoundation 0x03007a93 __CFRunLoopRun + 979 44 CoreFoundation 0x03007350 CFRunLoopRunSpecific + 208 45 CoreFoundation 0x03007271 CFRunLoopRunInMode + 97 46 UIKit 0x0078bc6d -[UIApplication _run] + 625 47 UIKit 0x00797af2 UIApplicationMain + 1160 48 de.android.ContactForms 0x0002f90c +[org_xmlvm_iphone_UIApplication main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] + 565 49 de.android.ContactForms 0x0007c809 +[android_internal_AndroidAppLauncher main___java_lang_String_ARRAYTYPE:] + 173 50 de.android.ContactForms 0x0007cb8c main + 278 51 de.android.ContactForms 0x00002039 start + 53 ) terminate called after throwing an instance of 'java_lang_RuntimeException' Am 22.03.2011 11:48, schrieb xml...@li...: > Send xmlvm-users mailing list submissions to > xml...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > or, via email, send a message with subject or body 'help' to > xml...@li... > > You can reach the person managing the list at > xml...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of xmlvm-users digest..." > > > Today's Topics: > > 1. Re: UI Elements I use (Wolfgang Korn) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 22 Mar 2011 11:17:33 +0100 > From: Wolfgang Korn<wol...@xm...> > Subject: Re: [xmlvm-users] UI Elements I use > To: opwoco GbR<in...@op...> > Cc: "xml...@li..." > <xml...@li...> > Message-ID:<4D8...@xm...> > Content-Type: text/plain; charset="iso-8859-1" > > Miggi, > > I just added the missing constructor as well as an implementation of > setText() to CheckBox. Since UISwitch does not support setting a text, > setText will fail for CheckBoxes. To try it please remove the > android:text attribute from your layout resource (for the CheckBox only, > of course). Please let me know it it working now. > > -- Wolfgang > |