Android Question Use reflector to implement google play games services?

base64

Member
Licensed User
Longtime User
Is it possible to implement Google Play Games with the Reflector library? If so, how do I get started? And how do I use the classes in googleplayservices.jar with reflector?

I'm aware there's a Google play games library, but it doesn't support the newer version of Googleplayservices.jar, nor I could make it work with the older ones.

All I need within the Google Play Games for the moment are leaderboard/rank, and achievements.
 

base64

Member
Licensed User
Longtime User
Would it still be too complex if all I need are:
- sign in/out
- set achievements (when user achieved something)
- set highscore
- and get leaderboard?

Won't I just be instantiating the appropriate object(s), then call its functions? Or it'll really be more complex than that?


Edit: ok I tried to get started, but how do I create an object with reflector which class file is on the jar file (GameHelper)? I'm using the latest googleplayservices.jar instead of the old one.

This:
B4X:
Dim r As Reflector
Dim x As Object
x = r.CreateObject("GameHelper")

gave me:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: GameHelper
 
Last edited:
Upvote 0
Top