java - Android unfortunately MyNvapplication has stopped -
good day.i tried run new application, genymotion emulator says "unfortunately applicationhas stopped". know why doing this?
this console says:
[2017-08-18 16:23:07 - com.nomarodnur] [2017-08-18 16:23:07 - com.nomarodnur] android launch! [2017-08-18 16:23:07 - com.nomarodnur] adb running normally. [2017-08-18 16:23:07 - com.nomarodnur] performing com.nomarodnur.ptplayer activity launch [2017-08-18 16:23:08 - com.nomarodnur] automatic target mode: unable detect device compatibility. please select target device. [2017-08-18 16:23:14 - com.nomarodnur] uploading com.nomarodnur.apk onto device '192.168.224.102:5555' [2017-08-18 16:23:36 - com.nomarodnur] installing com.nomarodnur.apk... [2017-08-18 16:23:38 - com.nomarodnur] success! [2017-08-18 16:23:38 - com.nomarodnur] starting activity com.nomarodnur.ptplayer on device 192.168.224.102:5555 [2017-08-18 16:23:38 - com.nomarodnur] activitymanager: starting: intent { act=android.intent.action.main cat=[android.intent.category.launcher] cmp=com.nomarodnur/.ptplayer }
logcat empty.
code ptpplayer.java :
public class ptplayer extends cocos2dxactivity { private static native void loadmodelcontroller(); protected void onactivityresult(int requestcode, int resultcode, intent data) { super.onactivityresult(requestcode, resultcode, data); try { log.v("----------","onactivityresult: request: " + requestcode + " result: "+ resultcode); if(ptstorebridge.iabhelper().handleactivityresult(requestcode, resultcode, data)){ log.v("-----------", "handled iabhelper"); } else if(requestcode == ptservicesbridge.rc_sign_in){ if(resultcode == result_ok){ ptservicesbridge.instance().onactivityresult(requestcode, resultcode, data); } else if(resultcode == gamesactivityresultcodes.result_sign_in_failed){ int duration = toast.length_short; toast toast = toast.maketext(this, "google play services: sign in error", duration); toast.show(); } else if(resultcode == gamesactivityresultcodes.result_app_misconfigured){ int duration = toast.length_short; toast toast = toast.maketext(this, "google play services: app misconfigured", duration); toast.show(); } } } catch (exception e) { log.v("-----------", "onactivityresult fail on iabhelper : " + e.tostring()); } } protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); ptservicesbridge.initbridge(this, getstring( r.string.app_id )); getwindow().addflags(windowmanager.layoutparams.flag_keep_screen_on); } @override public void onnativeinit(){ initbridges(); } private void initbridges(){ ptstorebridge.initbridge( ); if (ptjnihelper.isadnetworkactive("kchartboost")) { ptadchartboostbridge.initbridge(this); } if (ptjnihelper.isadnetworkactive("krevmob")) { ptadrevmobbridge.initbridge(this); } if (ptjnihelper.isadnetworkactive("kadmob") || ptjnihelper.isadnetworkactive("kfacebook")) { ptadadmobbridge.initbridge(this); } if (ptjnihelper.isadnetworkactive("kapplovin")) { ptadapplovinbridge.initbridge(this); } if (ptjnihelper.isadnetworkactive("kleadbolt")) { ptadleadboltbridge.initbridge(this); } if (ptjnihelper.isadnetworkactive("kfacebook")) { ptadfacebookbridge.initbridge(this); } if (ptjnihelper.isadnetworkactive("kheyzap")) { ptadheyzapbridge.initbridge(this); } } @override public cocos2dxglsurfaceview oncreateview() { cocos2dxglsurfaceview glsurfaceview = new cocos2dxglsurfaceview(this); glsurfaceview.seteglconfigchooser(8, 8, 8, 8, 16, 0); return glsurfaceview; } static { system.loadlibrary("player"); } @override protected void onresume() { super.onresume(); if (ptjnihelper.isadnetworkactive("kchartboost")) { ptadchartboostbridge.onresume( ); } } @override protected void onstart() { super.onstart(); if (ptjnihelper.isadnetworkactive("kchartboost")) { ptadchartboostbridge.onstart( ); } } @override protected void onstop() { super.onstop(); if (ptjnihelper.isadnetworkactive("kchartboost")) { ptadchartboostbridge.onstop( ); } } @override protected void ondestroy() { super.ondestroy(); } }
Comments
Post a Comment