终于搞明白了,Andriod读取资源只能在asserts文件夹下或者scard上,其他地方是不行的。

文件加在XML后,就可以读了。

一句话就搞定了:

InputStream istr = getAssets().open("MyClass.xml");

尼玛,之前浪费那么多时间。

相关文章:

  • 2022-02-03
  • 2021-08-04
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2021-09-29
  • 2021-08-29
猜你喜欢
  • 2021-08-18
  • 2022-12-23
  • 2022-03-08
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
相关资源
相似解决方案