Android - how to get or set (print) DPI ( dots per inch ) of JPEG file while loading or saving it programmatically?
问题 I have an app developed on Android versions 4.0 and above. ( The app does not support Android versions below 4.0 [Ice Cream Sandwich] ). The question is related to (print) DPI of various images ( for eg. of jpeg or png ) format. This question does NOT relate to SCREEN DPI or sizes of various Android devices. It is also NOT related to showing the Bitmap on the device in screen size. I am using the following code to load the image file in 'Bitmap'. Then I have been cropping it and saving it to