我改變你能不能幫我看看哪裏是錯誤的,因爲它是相同的錯誤日誌這是什麼錯誤意味着在Android Studio中
enter code here
public class MainActivity extends Activity {
WebView mWebView;
public ImageButton button01;
public ImageButton button02;
public class MainActivity extends Activity {
WebView mWebView;
public ImageButton button01; ``
public ImageButton button02;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(mylayout);
button01 = (ImageButton) findViewById(R.id.Button01);
button02 = (ImageButton) findViewById(R.id.Button02);`enter code here`
button01.setOnClickListener(new ImageButton.OnClickListener(){
public void onClick(View v){ jumpToLayout03();
Intent intent = new Intent();
intent.setClass(MainActivity.this, web.class);
startActivity(intent); }}
public void jumpToLayout03() {
setContentView(activity_main01);
}
});}}
enter code here
我改變你能幫我看看哪裏是錯誤的,因爲它是相同的錯誤日誌
Something is null。通過點擊例外找出什麼,並確保它不是下一次。 – 323go 2015-04-01 03:58:12
爲什麼它說它重複?它與那個不同 – eason 2015-04-02 01:00:40