Hi, Anyone knows about how to let cocos2d-x activity running along with Native Android activity?

Hi Everyone,

I am trying to display some text with animation during video playing, just like Bilibili.com, so I need to let my cocos2d-x activity cover another native activity, is that possible?

If it does, how to do it?

I know is hardly to running 2 Activities at same time, so is that possible to let cocos2d-x running as a fragment??

In fact, cocos2d created a view called SurfaceView and add to layout. So theoretically, you can continue to add other views.
Fragments should also be available, but you need to manage your life cycle and bind to cocos on your own.

I wrote a blog to use cocos in surface, which might be useful to you. (If you understand chinese)
www.jianshu#com/p/6c3bedf98305