[mono-android] Does anyone have a code example for using Google Market Licensing with MonoDroid?

Mark Eaton mark.eaton.me at gmail.com
Sat Jan 14 07:37:33 UTC 2012


I'm using Visual Studio 2010 and want to implement Google Market Licensing.

I'm basing it on the official Android documentation:
http://developer.android.com/guide/publishing/licensing.html

I'm struggling getting this to work with MonoDroid. Although I have several
years of experience in C# and .NET, I have zero experience in Java.

I have installed the Google Market Licensing via the Android SDK, and have
copied all the Java files from <Android
SDK>/extras/google/market_licensing/library/src   into my main project.

I have set the the .java files to AndroidJavaSource.

And now I'm stuck. I know I need to use JNIEnv to talk to these java files.

I can get the LicenseChecker.java with:
    _licensing =
JNIEnv.FindClass("com/android/vending/licensing/LicenseChecker");

Surely there must be several MonoDroid developers out there that would have
already implemented this into their apps?

Any help would be appreciated.


Kind regards

Mark Eaton

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Does-anyone-have-a-code-example-for-using-Google-Market-Licensing-with-MonoDroid-tp5144555p5144555.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list