L leitor79 Active Member Licensed User Longtime User Oct 9, 2019 #1 Hi, I try to change the focus mode, like the flash mode, but I don't know how to get the current focus mode. I've tried wit camEx.GetParameter ("focus", "FocusMode", "GetFocusMode" with no luck). I appreciate any help! Thank you!
Hi, I try to change the focus mode, like the flash mode, but I don't know how to get the current focus mode. I've tried wit camEx.GetParameter ("focus", "FocusMode", "GetFocusMode" with no luck). I appreciate any help! Thank you!
DonManfred Expert Licensed User Longtime User Oct 10, 2019 #2 leitor79 said: I've tried wit camEx.GetParameter ("focus", "FocusMode", "GetFocusMode" with no luck). Click to expand... you better check the DOCUMENTATION. There is no such method. https://developer.android.com/reference/android/hardware/Camera.Parameters.html#getFocusMode() Upvote 0
leitor79 said: I've tried wit camEx.GetParameter ("focus", "FocusMode", "GetFocusMode" with no luck). Click to expand... you better check the DOCUMENTATION. There is no such method. https://developer.android.com/reference/android/hardware/Camera.Parameters.html#getFocusMode()
L leitor79 Active Member Licensed User Longtime User Oct 10, 2019 #3 Hi DonManfred, thank you for your answer. I've seen that documentation, and getFocusMode didn't work. I've browsed into the object properties in debug mode and I've found "getSupportedFocusModes"; I'm using Return r.RunMethod("getSupportedFocusModes") and it works. I don't know if that could be related to the android version. Regards, Upvote 0
Hi DonManfred, thank you for your answer. I've seen that documentation, and getFocusMode didn't work. I've browsed into the object properties in debug mode and I've found "getSupportedFocusModes"; I'm using Return r.RunMethod("getSupportedFocusModes") and it works. I don't know if that could be related to the android version. Regards,