我有一段这样的代码:
public class myAcitvity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_mine);
// Want a text to appear on activity screen after this activity creation , but not a toast.
}
}
现在一旦创建了活动,我想要一个静态文本出现,就像我们在jsp
使用<c: out>
or时所做的那样out.print()
。我如何在 android 中做到这一点?