java - How do I use BaseGameUtils when all of my activities already extend off of another? -


i have hit problem signing in google play in application google play services api. i using basegameutils achievements, , have found use in activity, activity must extend basegameutils, or basegameactivity.

here problem is; the activities need use basegameutils extend classes required proper function. here's example:

    // in play.java, 1 of main activities in use      public class play extends gamestate {         private boolean debug = true;          // want extend basegameutils class, yet need         // extend gamestate retain functional operation     } 

how go doing using basegameutils if can't extend it, , how use when, need it, extends class.

p.s. have basegameutils , needed set , working. without sign in feature, useless , crashes game. have places few try/catches in code stop debugging purposes.

using basegameactivity not @ required. looking @ source basegameactivity, delegates of functionality gamehelper can instantiated , used type of activity - pass on appropriate lifecycle events custom activity classes gamehelper directly.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -