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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -