Greetings,
First off, I want to recognize how enormously better the debugging is in M4A
4.0. Thank you!
I am able to launch and run our application, but I am getting a
Java.Lang.NoClassDefFoundError exception when trying set the items of an
AlertDialog using AlertDialog.Builder.SetItems(..).
Here is our code:
var builder = this.CreateDialog(title, null)
.SetItems(items, (s, e) => { CallResultHandler(resultHandler,
(int)e.Which); })
.SetNeutralButton(defaultText ?? "Cancel", (s, e) => {
CallResultHandler(resultHandler, null); });
The call to SetItems is what is failing (items is of type string[]).
I am getting the below Debug output:
===================================================================
Java.Lang.Throwable: java.lang.ICharSequence in loader
dalvik.system.PathClassLoader[/data/app/OFM_Home.MD-1.apk]
Exception:
Java.Lang.NoClassDefFoundError: java.lang.ICharSequence
Unhandled Exception:
Java.Lang.NoClassDefFoundError: java.lang.ICharSequence
Exception:
Java.Lang.NoClassDefFoundError: java.lang.ICharSequence
Unhandled Exception:
Java.Lang.NoClassDefFoundError:
[ERROR] FATAL UNHANDLED EXCEPTION: Java.Lang.NoClassDefFoundError: Exception of
type 'Java.Lang.NoClassDefFoundError' was thrown.
at Android.Runtime.JNIEnv.FindClass (System.String classname) [0x00000] in
<filename unknown>:0
at Android.Runtime.JNIEnv.FindClass (System.Type type) [0x00000] in <filename
unknown>:0
--- End of managed exception stack trace ---
java.lang.NoClassDefFoundError: java.lang.ICharSequence
at mono.android.view.View.OnClickListenerImplementor.n_onClick(Native
Method)
at
mono.android.view.View.OnClickListenerImplementor.onClick(OnClickListenerImplementor.java:27)
at android.view.View.performClick(View.java:2485)
at android.view.View$PerformClick.run(View.java:9089)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3806)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: java.lang.ICharSequence in loader
dalvik.system.PathClassLoader[/data/app/OFM_Home.MD-1.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
... 13 more
In mgmain JNI_OnLoad
The program 'Mono' has exited with code 255 (0xff).
===================================================================
Mono for Android 4.0 looks great so far, though!
Thank you,
Chris Tossing
Software Engineer
Touchcom
A G4S Technology Company
Direct Dial: +1 (781) 457-0779
Cell: +1 (847) 942-0359
ctoss...@touchcominc.com<mailto:ctoss...@touchcominc.com>
www.touchcominc.com<http://www.touchcominc.com/>
21 North Avenue, Burlington, Massachusetts USA
P Please consider the environment before printing this email
The details of this company are as follows:
Touchcom Inc, Registered Office: 21 North Avenue, Burlington, MA 01803.
This communication may contain information which is confidential, personal
and/or privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution,
forwarding, copying or use of this communication or the information in it is
strictly prohibited.
Any personal views expressed in this e-mail are those of the individual sender
and the company does not endorse or accept responsibility for them.
Prior to taking any action based upon this e-mail message, you should seek
appropriate confirmation of its authenticity.
This e-mail has been scanned for all viruses by MessageLabs.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid