How to Calculate the Resolution of a Device in DP
px/dp = dpi/160dpi
dp = px * 160dpi/dpi
dp = 1280 * 160 * 213
dp = 961.50
Again,
dp = px * 160dpi/dpi
dp = 800 * 160 * 213
dp = 600.93
The screen resolution of device in dp is 961.50 by 600.93
Now, we can extract filename with and without extension :) You will convert your bitmap to uri and get the real path of your file. Now w...