2011-07-01から1ヶ月間の記事一覧
ねもい。。。 post_parent; if (!empty($parentId)) $page = get_toplevel_parent(get_page($parentId)); return $page; } endif; ?>
/** * * @param id * @return */ public Bitmap getImage(int id) { Bitmap bitmap = null; FileInputStream fileInputStream; try { fileInputStream = mContext.openFileInput(id + ".png"); bitmap = BitmapFactory.decodeStream(fileInputStream); fileI…
public void saveImage(int id, Bitmap bitmap) { FileOutputStream fileOutputStream; try { fileOutputStream = mContext.openFileOutput(id + ".png", Context.MODE_WORLD_READABLE); bitmap.compress(CompressFormat.PNG, 100, fileOutputStream); fileO…
public boolean saveImage(int id, Bitmap bitmap) { String status = Environment.getExternalStorageState(); File outputDir; // 書き込みディレクトリ if (!status.equals(Environment.MEDIA_MOUNTED)) { // 外部ストレージがマウントされていない場合 /…
http://d.hatena.ne.jp/satoru_net/20091214/1260728721さんのデータを使用させていただきました <resources> <color name="black">#000000</color> <color name="dimgray">#696969</color> <color name="gray">#808080</color> <color name="darkgray">#A9A9A9</color> <color name="silver">#C0C0C0<…</color></resources>