[mono-android] Constructor became protected in 4.0 : Android.App.AlertDialog.AlertDialog(System.IntPtr, Android.Runtime.JniHandleOwnership)

klimaye klimaye at gmail.com
Tue Dec 6 11:51:35 EST 2011


I was using the constructor below to integrate with zxing bar code scanner.

            IntPtr rAlertDialog = JNIEnv.CallStaticObjectMethod(
                    IntentResult, IntentResult_initiateScan, new
JValue(activity));
            // ...and construct a nice managed wrapper over the Java
instance.
            new AlertDialog(rAlertDialog, JniHandleOwnership.DoNotTransfer);

It looks like it has been made protected in 4.0 and project does not
compile.

Now I am unable to show the AlertDialog.

Why was this done? What is an alternate way of achieving above now in 4.0?

Barcode scanning is very critical to our app.

Please let me know any work around / timetable for a fix if needed.

Thanks


--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Constructor-became-protected-in-4-0-Android-App-AlertDialog-AlertDialog-System-IntPtr-Android-Runtim-tp5052707p5052707.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list