1 of 1 people found this helpful
Oh so it's a bug!?!?! So until next releases any hope to get device's camera resolution?
Just to be sure, use this call to get the resolution:
Getting 640x480 with that code definitely sounds like a bug.
I have tested a galaxy S2 with rhodes-188.8.131.52 and it returned 3264x2448. If you are using an earlier version of rhodes, try with 184.108.40.206 in case it helps
I'm also using rhodes-220.127.116.11, but with Galaxy S3 I get 640x480 !!!
Here my code, I seem it's correct, isn't it?!?!
main_info = Camera.get_camera_info("main")
width = main_info['max_resolution']['width']
height = main_info['max_resolution']['height']
Alert.show_popup("Camera width " + width.to_s())
Alert.show_popup("Camera height " + height.to_s())
Anyway it sounds strange that on S2 there isn't any problem, doesn't it?!?!
Your code looks correct. It does seem like a bug, either in Rhodes or in the S3. I do not have an S3 right now so I can only suggest that you try playing with the "version" setting in your build.yml file. If you have:
try setting it to "2.2" or "2.3" and see if that makes a difference in this particular case.
Also modifying version, no good news. I'll try to do a test with a S2
Here my build.yml....do you see anything strange?
Thanks a lot,
Your build file looks fine to me. I sent a test app to someone else with an S3 and they confirm that it returns 640x480 to them too, so this really looks like a bug now. There is a public issue tracker you can use at https://github.com/rhomobile/rhodes/issues if you want to report it.
Include in your description that you are using a Galaxy S3 (and the ROM version, if possible), your expected outcome and the observed results.