Hi, with my camera I can set a different scene like candlelight ,beach,sunset and so on.
I am trying to make an app wich can set these different scenes .
I tried to set a different scene with camEx.setSceneMode("beach") but
nothing happens , no error are given ,read back function gives the right
scene back.
camEx.setSceneMode("beach")
Log("Scene Mode = " & camEx.getSceneMode) gives Scene Mode = beach
but when I input camEx.setSceneMode("test")
Log("Scene Mode = " & camEx.getSceneMode) gives Scene Mode = test
no error is given , but test is not in de camEx.GetSupportedSceneModes
from my telephone.
Scene modes from my phone are :
auto,portrait,landscape,night,beach,sunset,fireworks,sports,party,candlelight,back-light,text,fall-color,dusk-dawn.
These reflection object subs are used
The zipped test-file is attached , Is there an error in the code why is this not working.?
Why gives it no error when I input a non valid Scenename?
I am trying to make an app wich can set these different scenes .
I tried to set a different scene with camEx.setSceneMode("beach") but
nothing happens , no error are given ,read back function gives the right
scene back.
camEx.setSceneMode("beach")
Log("Scene Mode = " & camEx.getSceneMode) gives Scene Mode = beach
but when I input camEx.setSceneMode("test")
Log("Scene Mode = " & camEx.getSceneMode) gives Scene Mode = test
no error is given , but test is not in de camEx.GetSupportedSceneModes
from my telephone.
Scene modes from my phone are :
auto,portrait,landscape,night,beach,sunset,fireworks,sports,party,candlelight,back-light,text,fall-color,dusk-dawn.
These reflection object subs are used
B4X:
Public Sub GetSupportedSceneModes As List
r.target = parameters
Return r.RunMethod("getSupportedSceneModes")
End Sub
Public Sub getSceneMode As String
Return GetParameter("mode")
End Sub
Public Sub setSceneMode(Mode As String)
SetParameter("mode", Mode)
End Sub
Public Sub SetParameter(Key As String, Value As String)
r.target = parameters
r.RunMethod3("set", Key, "java.lang.String", Value, "java.lang.String")
End Sub
Public Sub GetParameter(Key As String) As String
r.target = parameters
Return r.RunMethod2("get", Key, "java.lang.String")
End Sub
The zipped test-file is attached , Is there an error in the code why is this not working.?
Why gives it no error when I input a non valid Scenename?