For Example, as shown in the below image, i am in a need to find the way of adding the highlighted ' popup search' to the 'inventory transfer' record, As of now on inventory only list is available, please share your ideas on this, thanks in advance!
u
user
09/28/2018, 1:26 PM
Identify file extension of file without extension
Suppose I have file name sample.
This can be image (sample.png) or video file (sample.mp4). Is there a way to guess its extension in Java/ Android/ Kotlin?
I thought I can identify image like this, if I get bitmap, it is image.
BitmapFactory.Options options = new BitmapFactory.Options();
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
Bitmap bitmap = BitmapFactory.decodeFile(filePath, options);
selected_photo.setImageBitmap(bitmap);
But I don't think it is a good way to process...