void TestNonStaticNestedType(TextView textview) { #if __ANDROID_7__ var wallpaper = new CubeWallpaper(); var engine = wallpaper.OnCreateEngine(); var engine2 = new WallpaperService.Engine(wallpaper); textview.Text += "\n\nAble to create non-static nested type from managed code."; IntPtr TestCubeEngine = JNIEnv.FindClass("mono/android/test/TestCubeEngine"); IntPtr TestCubeEngine_ctor = JNIEnv.GetMethodID(TestCubeEngine, "<init>", "()V"); IntPtr instance = JNIEnv.NewObject(TestCubeEngine, TestCubeEngine_ctor); IntPtr TestCubeEngine_createCubeEngine = JNIEnv.GetMethodID(TestCubeEngine, "createCubeEngine", "()V"); JNIEnv.CallVoidMethod(instance, TestCubeEngine_createCubeEngine); textview.Text += "\n\nAble to create non-static nested type from javacode."; #endif }
public CubeEngine(CubeWallpaper s) : base(s) { }