[mono-android] GameCircle Amazon

Matteo Polito mapo80 at gmail.com
Sun Dec 1 15:09:52 UTC 2013


Hi Jonathan,

Now after becoming mad it compiles and works. I'll write a wiki to help
others make it work.

Thanks for your help!

Bye.


2013/11/28 Matteo Polito <mapo80 at gmail.com>

> Ok, solved. I missed reference Jar.
>
> Thanks.
>
>
> 2013/11/28 Matteo Polito <mapo80 at gmail.com>
>
>> Hi, I have a question:
>>
>> If jar binding don't have a public class what have I to do?
>> I know that there this class "AmazonGamesClient" in jar in
>> "com.amazon.ags.api" but in the generated binding there isn't. What to do?
>>
>> Thanks.
>>
>>
>> 2013/11/27 Matteo Polito <mapo80 at gmail.com>
>>
>>> Hi,
>>>
>>> I've seen that classes that implemts NumberList has GetDeppCopyHandler,
>>> so it should work. Is it right?
>>>
>>> I've binded other amazon jar:
>>>
>>> - AmazonInsights-android-sdk-2.0.24.jar
>>> - login-with-amazon-sdk.jar
>>> - gamecirclesdk.jar
>>>
>>> All projects are on GitHub:
>>> https://github.com/mapo80/GameCircle.Monodroid
>>>
>>>
>>>          [Register ("deepCopy", "()Lcom/amazon/ags/client/whispersync/
>>> model/HighNumberList;", "GetDeepCopyHandler")]
>>>         public virtual global::Com.Amazon.Ags.Client.Whispersync.Model.
>>> HighNumberList DeepCopy ()
>>>         {
>>>             if (id_deepCopy == IntPtr.Zero)
>>>                 id_deepCopy = JNIEnv.GetMethodID (class_ref, "deepCopy",
>>>  "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;");
>>>
>>>             if (GetType () == ThresholdType)
>>>                 return global::Java.Lang.Object.GetObject<global::Com.
>>> Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.
>>> CallObjectMethod  (Handle, id_deepCopy), JniHandleOwnership.
>>> TransferLocalRef);
>>>             else
>>>                 return global::Java.Lang.Object.GetObject<global::Com.
>>> Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.
>>> CallNonvirtualObjectMethod  (Handle, ThresholdClass, id_deepCopy),
>>>  JniHandleOwnership.TransferLocalRef);
>>>         } -
>>>
>>>
>>> 2013/11/27 Jonathan Pryor <jonpryor at vt.edu>
>>>
>>>> On Nov 27, 2013, at 3:25 PM, Matteo Polito <matteo.polito at gmail.com>
>>>> wrote:
>>>> > O, this should be right!!
>>>>
>>>> Nope! It'll result in infinite recursion and stack overflow.
>>>>
>>>> You want:
>>>>
>>>>         public abstract Java.Lang.Object DeepCopy();
>>>>
>>>> You'll also need to double-check that the generated NumberList type has
>>>> a GetDeepCopyHandler() method (or something similar). If it doesn't, things
>>>> get more complicated.
>>>>
>>>>  - Jon
>>>>
>>>> _______________________________________________
>>>> Monodroid mailing list
>>>> Monodroid at lists.ximian.com
>>>>
>>>> UNSUBSCRIBE INFORMATION:
>>>> http://lists.ximian.com/mailman/listinfo/monodroid
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20131201/b8718345/attachment.html>


More information about the Monodroid mailing list