unfortunately has stopped

前端 未结 3 1675
野趣味
野趣味 2021-01-29 08:40

So i don\'t know what the rules are here about double posts, anywho i didn\'t get follow up support on my other question.. anywho my problem is stated, heres my logcat



        
3条回答
  •  一整个雨季
    2021-01-29 09:10

    According to your error message:

    05-28 19:45:04.425: E/AndroidRuntime(793): Caused by: java.lang.NullPointerException
    05-28 19:45:04.425: E/AndroidRuntime(793):  at xela.kasea.flyffresell.Main.onCreate(Main.java:31)
    

    the problem must be the button "bReturn" inside your layout

     ret = (Button) findViewById(R.id.bReturn);
    

    probably doesn´t exist.

    Update: well i found the problem, why load the contentview again when you click the bReturn button?:

    case R.id.bReturn:
            setContentView(R.layout.display);
    

提交回复
热议问题