I followed this guy's tutorial on how to make an ActionBar. Let's say I want to change the TextView inside one of the fragments. So I added this on my StartActivity.java, under onCreate:
TextView textview = (TextView) findViewById(R.id.textView1);
textview.setText("HI!");
When I start my app, it crashes. Can somebody point me to the right direction?
I hope somebody takes the time to look at the guy's tutorial because his layout is basically the same as mine. Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…