Not to modify Cocos2dxActivity.java

Hi,

Is it possible to not to patch Cocos2dxActivity.java when using SDKBox?
Like add the additional code to the class “AppActivity.java” which subclass Cocos2dxActivity.java.

I think if it is possible, it’s better for decoupling.

Thanks,
Jo

Thank you for your suggestion, we will consider this change.

Hi @yinjimmy

I created a middle layer of class between Cocos2dxActivity.java and AppActivity.java.
Here is the code (almost copy and paste from your document).


Does it make sense?
I would like to hear your suggestion.

Thanks,
Jo

1 Like

Good idea.