안에 카메라촬영과 갤러리검색을 통한 이미지들을 비트맵 형식으로 ImageView 안에 띄우는것 까지는 구현했습니다.
그러나,
예를 들어 EditText 창에 입력된 String 들은 다음과 같은 형식으로 받아올수있으나...
private EditText mtitle;
private EditText mbody;
.
.
private ImageView imageBox;
.
.
.
String title = mtitle.getText().toString();
String body = mbody.getText().toString();
____ image = imageBox.?????????????????????;
.
.
createNote(title, body, image);
--------------------------------------------------------------
ImageView 안에 띄어진 이미지를 어떤 유형으로 어떻게 받아와야(get..?) 되는지 모르겠네요 ;; ㅠㅠ
구성은 따로 db 클래스를 만들어서 구현하였습니다.
public long createNote(String title, String body, ___ image) {
ContentValues initialValues = new ContentValues();
initialValues.put(KEY_TITLE, title); initialValues.put(KEY_BODY, body); initialValues.put(KEY_IMG, image);
return mDb.insert(DATABASE_TABLE, null, initialValues); }도와주시면 정말 감사드리겠습니다!! 흐헝헝헝허헣
그리고 나서...이런식으로...
byte[] blob = mCurrentDiaryItem.getImageBytes();
mCurrentBitmap = Utils.byteArrayToBitmap(blob);
mIvImage.setImageBitmap(mCurrentBitmap);
public static Bitmap byteArrayToBitmap(byte[] bytes) {
if (bytes.length < 1)
return null;
Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
return bitmap;
}




byte[]