After all this work, the property debug.mono.extra doesn't even exist,
arrrrrr (ah well):

        IntPtr ptrSystemProperties =
JNIEnv.FindClass("android/os/SystemProperties");
        IntPtr ptrObject = JNIEnv.GetObjectClass(ptrSystemProperties);
        IntPtr method = JNIEnv.GetStaticMethodID(ptrSystemProperties, "get",
"(Ljava/lang/String;)Ljava/lang/String;");

        System.IntPtr ptrResults =
JNIEnv.CallStaticObjectMethod(SystemProperties.Handle, method,
                 //new Android.Runtime.JValue[]{ new Android.Runtime.JValue(new
Java.Lang.String("bt.version.driver")) });
                 new Android.Runtime.JValue[]{ new Android.Runtime.JValue(new
Java.Lang.String("debug.mono.extra")) });

        var tmpRet = Java.Lang.Object.GetObject<Java.Lang.String>(ptrResults,
JniHandleOwnership.TransferLocalRef); 
        return (string)tmpRet;



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Java-class-operator-support-in-JNI-JNIEnv-tp5713539p5713540.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to