/ Published in: Java
private String mapPath = "img/full_map.png"; parkMapBitmap = getBitmapFromAsset(this.getContext(),mapPath);
Expand |
Embed | Plain Text
AssetManager assetManager = context.getAssets(); InputStream istr; Bitmap bitmap = null; try { istr = assetManager.open(strName); bitmap = BitmapFactory.decodeStream(istr); return null; } return bitmap; }
You need to login to post a comment.
