Android – basegameactivity and multiple inheritance

I want to use basegameactivity from the game example:

https://github.com/playgameservices/android-samples/blob/master/BaseGameUtils/src/com/google/example/games/basegameutils/BaseGameActivity.java

But my game activity must be extended from the activity class of another framework. Is there an implementation of basegameactivity decomposed into a separate class, so I don't have to let my activity inherit it?

thank you

resolvent:

It is not required to use basegameactivity completely. Create your own basegameactivity according to the source code instead of

public abstract class BaseGameActivity extends FragmentActivity implements
    GameHelper.GameHelperListener

discharge

public abstract class BaseGameActivity extends YourFrameworksActivity implements
    GameHelper.GameHelperListener

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>