Hitesh Kushwah :
I am developing a PhotoBook app where I need to notify the user if they add a low-resolution image. I just need to show a "Low-Resolution Image, Printing may be affected" warning as chatbooks app do.
Daxesh Vekariya :
int file_size = Integer.parseInt(String.valueOf(file.length() / 1024));
if (file_size < 100){
Log.v(TAG, "Low resolution image");
}else{
Log.v(TAG, "");
}
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=296137&siteId=1