i can getting the image width through MediaStore.Images.Media normally
but i need to getting the image width and height from image which selected from d
If you guys keep getting (0,0) in the width and height, you probably want to decode a stream, and not a file.
It probably because you're trying to read an image from the assets. Try this:
val b = BitmapFactory.decodeStream(context.assets.open("path/in/assets/img.png"))
val width = b.width
val height = b.height