How to extend SonarFrameWorkActivity when i need to extend Coco2dxActivity

  • kangyy
    Likes 0

    Problem Description
    package com.mynewrunningame.test;
    
    import org.cocos2dx.lib.Cocos2dxActivity;
    import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
    
    import android.os.Bundle;
    
    public class NewRunningGame extends Cocos2dxActivity{
        
        protected void onCreate(Bundle savedInstanceState){
            super.onCreate(savedInstanceState);    
        }
    
        public Cocos2dxGLSurfaceView onCreateView() {
            Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
            glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
            
            return glSurfaceView;
        }
    
        static {
            System.loadLibrary("cocos2dcpp");
        }     
    }
    
    
    

    Sorry i am new on intergrating admob using cocoshelper,

    any idea how am i going to call SonarFrameworkActivity to my main package?

    Thank you in advance

  • Sonar Systems admin
    Likes 0

    Why do you need to extend it.

Login to reply