On Mar 10, 2012, at 4:08 PM, GavinBryan wrote: > [I] am getting an error when calling JNIEnv.CallStaticVoidMethod, saying > invalid application configuration
Can you provide the full stack trace? > I've included airshipconfig.properties in my assets folder Have you set its Build action to AndroidAsset? If the Build action isn't AndroidAsset, it won't be compiled as an asset. > I think it maybe where I'm trying to return the AirshipConfigOptions from > loaddefaultOptions method as I'm not sure what call to make to return a > AirshipConfigOptions type with JNIENV I don't see any code to convert `methodPtr` into an AirshipConfigOptions type, though it's largely irrelevant; unless you write an AirshipConfigOptions wrapper, the only thing you can wrap it in is a Java.Lang.Object. Useful, but not very useful. As for UAirship.takeOff(Application, AirshipConfigOptions) invocation: > IntPtr methodId2 = JNIEnv.GetStaticMethodID(ip_uairship, "takeOff", > "(Landroid/app/Application;Lcom/urbanairship/AirshipConfigOptions;)V"); > > JNIEnv.CallStaticVoidMethod(ip_uairship, methodId2, new > JValue(this.Application), new JValue(methodPtr)); You're doing it right; the above is correct. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid