Implementing Amazon GameCircle

Hi everyone,

I’m trying to implement Amazon GameCircle on Corona Enterprise and I’m stuck with the following piece of code:

agsGameClient = AmazonGamesClient.initialize(
getApplication(), // <<< This is where I’m stuck
agsGameCallback,
agsGameFeatures);

I believe the getApplication is a method which could be found in the android.app.Activity in which we would need to extend the main class in order to use it. But for the Corona Enterprise it is extended with android.app.Application. I tried replacing that one with “Activity” and of course it becomes an error.

I then went in to the Corona Enterprise API information and checked CoronaActivity hoping that maybe it has a function which returns the application that owns this activity (that’s what getApplication() method does) but found none.

Can anyone here help me?

Thanks,
Jazer [import]uid: 186199 topic_id: 34474 reply_id: 334474[/import]

Hi Jazer,

Just to clarify: are you using the snippet above in the [java]onCreate()[/java] method of your [java]CoronaApplication[/java]? If so, you should just be able to replace the [java]getApplication()[/java] call with the [java]this[/java] pointer.

-peter [import]uid: 201959 topic_id: 34474 reply_id: 137380[/import]

Hi Jazer,

Just to clarify: are you using the snippet above in the [java]onCreate()[/java] method of your [java]CoronaApplication[/java]? If so, you should just be able to replace the [java]getApplication()[/java] call with the [java]this[/java] pointer.

-peter [import]uid: 201959 topic_id: 34474 reply_id: 137380[/import]

Hey guys,

I wonder - how hard it is to implement GameCircle to my project?

Is there any template how to do that?

I have developed few games with Corona PRO, but i have no idea how to get started with Corona Enterprice. Any help - what to read, what to add, how to test - would be super.

So far i have Win Corona Pro, Mac Corona Pro, and I just downloaded CoronaEnterprise-Trial-2013.1202

What to do next?

Hey guys,

I wonder - how hard it is to implement GameCircle to my project?

Is there any template how to do that?

I have developed few games with Corona PRO, but i have no idea how to get started with Corona Enterprice. Any help - what to read, what to add, how to test - would be super.

So far i have Win Corona Pro, Mac Corona Pro, and I just downloaded CoronaEnterprise-Trial-2013.1202

What to do next?