I'll correct myself on that ... (on reading Analytics, not AdMobs :) ... I should read carefully first). You would need the JARs here to embed Google's libraries: http://code.google.com/apis/analytics/docs/gdata/1.0/gdataJava.html
Standard JSON or XML calls should not be a problem from mono though and are likely to be simpler, though you may find that the simplest implementation would be to drop some analytics javascript into a webview control and skipping the google data JAR stuff entirely. A check for standard RESful XML calls from .NET should cover what you need here. Regards, ::: James Burton ::: -----Original Message----- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of James Burton Sent: 12 May 2011 6:50 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Google Mobile Analytics interface Hi folks ... I hit this same issue on a project I was trying at home. I'll try to release the Mono library for the current Google AdMob SDK soon, but I need to get the instructions written up first as manifest changes and including the JAR file are stil required. If you are in a rush to apply this, then the following resources allowed me to accomplish wrapping the Google AdMob JAR for use within a MonoDroid application, and may provide a working sample. Fetch the latest SDK and read how to use it in java here: http://code.google.com/mobile/ads/docs/android/fundamentals.html NB: Apply the required activity and permissions changes as per these instructions to your android manifest. Read the "Letting C# Talk To Java" section of this (now out-dated) page: http://www.gregshackles.com/2011/02/using-admob-in-a-monodroid-application/ NB: This show the basic technique quite well and this will allow something as simple as embedding AdMobs. Particularly note the fact that the JAR will need to be marked as a Java Source File, as will any wrapper .java files you might create. NB: His GitHub project appears to have been maintained, so it probably contains a more current example. I don't have time to check if that is all working, but it is available here: https://github.com/gshackles/Sample-Projects/tree/master/MonoDroid/AdMobTest Note also that one of the easiest ways to retrieve the information you need for JNIEnv declarations is using the JAVAP tool. Off the top of my head I think the syntax required here was this: Javap -classpath GoogleAdMobsSdk-4.0.4.jar -s WHATEVERCLASSNAME So to access the AdView class details this would be: Javap -classpath GoogleAdMobsSdk-4.0.4.jar -s com.google.ads.AdView It is worth noting that JAR files are fundamentally still zip files, so you can copy, rename and open one to see the directory structure inside. I'll send an email to the list when my AdMob wrapper library project is available with instructions. I hope some of this is helpful to other people working with Java libraries on MonoDroid too. Regards, ::: James Burton ::: ::: TheTin - Digital Consultancy ::: -----Original Message----- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of nlamjumptech Sent: 12 May 2011 5:22 PM To: monodroid@lists.ximian.com Subject: [mono-android] Google Mobile Analytics interface I found that there is a MonoTouch interface to Google Mobile Analytics. Is anyone working on a MonoAndroid version? Thanx. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Google-Mobile-Analytics-interface-tp4390736p4390736.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 _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid