I have a text view in my Lyout and I would like to set some text to this textview. This should be made in a class which is not a MainActivity class.
The problem is t
You have not set the content View yet?
to do this use something like this:
public class MainActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}