0

我做了一个html IDE,想打包一些可以添加到站点的js库。我需要研究什么来实现这一点?

4

1 回答 1

1

正如kamituel 指出的那样,使用AssetManager. http://developer.android.com/reference/android/content/res/AssetManager.html

这是一个例子:

AssetManager assetManager = this.getAssets();
Bitmap[] yourImages = new Bitmap[] {
    BitmapFactory.decodeStream(assetMgr.open("firstimage.png"));
    BitmapFactory.decodeStream(assetMgr.open("secondimage.png"));
    BitmapFactory.decodeStream(assetMgr.open("thirdimage.png"));
};
于 2013-10-21T12:16:34.490 回答