I want to REMOVE the Thumbnail image after take a picture. I used the camera intent to launch the camera, passing the file Uri.
I've been looking for some documentation about how to Delete the thumbnail. All small examples I've seen is just to retrieve the current metadata tags, but not how to delete it.
ExifInterface only have function ExifInterface.setAttribute(String, String) But which one is the TAG to point null data to delete it or something similar?
Im using the support version of Exifinterface.
com.android.support:exifinterface:25.3.1
Related
I make a screenshot of part of screen, convert it into bitmap and wonder how to put it into clipboard. Find the only text examples, so is it possible to put bitmap or something like that right into clipboard avoiding saving screenshot into file and using URI for ClipData?
Each Item instance can be one of three main classes of data: a simple CharSequence of text, a single Intent object, or a Uri. See Item for more details.
https://developer.android.com/reference/android/content/ClipData
Official doc says, there are only three types you can use with ClipData. So, it seems, you cannot use bitmap directly, but you can save it and send its URI to ClipManager as ClipData.
I have extended a cropview library CropIwa and it is very good. It satisfies me well. The problem is when saving the crop image it asks about the destinationURI and I dont know how to get it.
My plan is to save it to database or if best firebase storage.
SOrry for the grammar.
It would appear that this Uri indicates where the cropped image should be written to after cropping.
For example, you could create a File object pointing to where you want the image to be saved, and then use Uri.fromFile() to get a Uri pointing to that location. Pass that Uri to the CropIwaSaveConfig.Builder constructor.
I am trying to create a blog type app, at the moment I am using an image button to get replaced with an image using the picasso libaray. Although, how would I go about adding/inserting image(s) from my gallery to an edit text. I am not sure how to go about doing this:
Although the image isn't very clear in describing your question, you can however use the below code to add a drawable in EditText.
<EditText
...
android:drawableLeft="#drawable/some_drawable"
android:drawablePadding="10dp"/>
Try using imageView.setCompountDrawablesWithInstrinsicBounds(drawable, null, null, null)
This way you can dynamically pass in the images you want to display from a gallery.
I have a jsp page for users to upload video.
I am able to store uploaded video as blob in datastore
but I want to create thumbnail from the uploaded video as well.
How do I create the thumbnail?
Depending of classes which you use to operate over MIME objects in Java, you should be able to obtain random frame from the video (let's say as BufferedImage) and then resize it to desired thumbnail size.
i just want add image into existing pdf that i tried, but it replace the code that i dont want.I just want to insert image at perticular location with previous data.and image should not replace that data.
iText http://itextpdf.com/ lets you do this kind of things