Example #1
0
            public void addScreenshot(Bitmap bitmap)
            {
                #if VERBOSE_LOGGING
                Debug.Log(string.Format("Invoking {0}...", MethodBase.GetCurrentMethod().Name));
                #endif
                JNIFind();

                if (_instance == IntPtr.Zero)
                {
                    Debug.LogError("_instance is not initialized");
                    return;
                }
                if (_jmAddScreenshot == IntPtr.Zero)
                {
                    Debug.LogError("_jmAddScreenshot is not initialized");
                    return;
                }
                if (null == bitmap)
                {
                    Debug.LogError("bitmap is not initialized");
                    return;
                }
                if (bitmap.GetInstance() == IntPtr.Zero)
                {
                    Debug.LogError("bitmap.Instance is not initialized");
                    return;
                }

                IntPtr arg1 = bitmap.GetInstance();
                IntPtr retVal = AndroidJNI.CallObjectMethod(_instance, _jmAddScreenshot, new jvalue[] { new jvalue() { l = arg1 } });
            }