从资产读取文件
public class Utils {
public static List<Message> getMessages() {
//File file = new File("file:///android_asset/helloworld.txt");
AssetManager assetManager = getAssets();
InputStream ims = assetManager.open("helloworld.txt");
}}FileFileNotFoundExceptionAssetManager getAssets()
UYOU
随时随地看视频慕课网APP
相关分类