Change the way of action pefrom(no longer wait for event), add loading jar file support, fix simple action memory leak

This commit is contained in:
hyb1996
2017-04-05 22:35:31 +08:00
parent b762ceb60b
commit 6844eb9841
88 changed files with 1797 additions and 832 deletions

View File

@@ -1,6 +1,7 @@
package com.stardust.pio;
import android.content.Context;
import android.content.res.AssetManager;
import android.util.Log;
import java.io.File;
@@ -239,4 +240,12 @@ public class PFile {
}
return file.delete();
}
public static String readAsset(AssetManager assets, String path) {
try {
return read(assets.open(path));
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
}