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]