protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        TextView tv = (TextView)findViewById(R.id.textView);
        tv.setText("我的世界");
    }

如果创建项目后直接在AVD中运行,则显示乱码,最好的解决办法就是在状态栏里有个File Encoding的属性,默认是"Utf-8",把它改为"GBK"再运行就没有乱码问题了

 

 http://hi.baidu.com/proglife/item/8d6a159a9aa34d4bf0421513

相关文章:

  • 2021-04-07
  • 2021-06-27
  • 2021-06-26
  • 2021-08-05
  • 2021-10-31
  • 2021-08-28
  • 2021-07-16
  • 2022-03-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-08-22
相关资源
相似解决方案