I'm a novice developer.crying I save the image URI I chose from the gallery in DB! If you do not select an image...When I tried to save it, the app turned off!
String str_image = mImageCaptureUri.toString();
I saved the URI like this, but if the image is not selected, how do I give the conditional statement if I want to put the default image (R.drawable.image)?
android image database listview
if(String str_image==null){ String str_image = R.drawable.image; saveMethodName(String str_image); }
Do this Bbyong
© 2024 OneMinuteCode. All rights reserved.