文件结构如下:assets/info/info

       AssetManager am = this.getResources().getAssets();
            InputStream input = null;
            try {
                input = am.open("info/info");
                int len = input.available();
                byte[] buffer = new byte[len];
                input.read(buffer);
                input.close();
                String str = EncodingUtils.getString(buffer, "UTF-8");
                Toast.makeText(this, str, Toast.LENGTH_LONG).show();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

 

 

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2021-11-27
  • 2021-12-08
  • 2021-11-03
  • 2022-12-23
  • 2022-03-06
  • 2021-12-05
猜你喜欢
  • 2021-09-09
  • 2021-10-02
  • 2021-11-10
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案