Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sqliteデータベースからの画像のパスを使用して、drawableフォルダーからimageviewに画像を設定する方法を知っている人はいますか? どんな助けでも大歓迎です。サンプルコードが役立ちます。ありがとう。=)
ファイルから Bitmap オブジェクトを取得し、それを使用して画像ビューを設定できます。ここにコード:
String img_path = get from your database ... Bitmap bmp = BitmapFactory.decodeFile(img_path); //use it. yourimgview.setImageBitmap(bmp);
^_^