If I start a phone call from android the orientation of the „Call“ activity change in the right orientation. But if I start the activity from my own program with <StartActivity(PC.Call("+49xxxxxxxxxx"))
the “Call” activity is always in portrait mode. What can I do to change the orientation to landscape?
I send the activity CALL in backgroud. Infact I start a timer of about 3" after activating the CALL, when timer is expired I take my APP activity in foreground, the Call activity is sent to background and a notification icon appears. The activity shown can show whatever you want including CALL info's.
Actually I don't want control the orientation. I want only to have the "Call" activity in the right orientation, but if I start the "Call" activity from my own activity the "Call" activity is all the time in portrait mode. In contrast, if I start the "Call" activity direct from android and I have the tablet in landscape mode, the "Call" activity starts also in portrait mode, but changes immediatily to landscape. If I have the tablet in portrait mode the "Call" activity starts of course also in portrait mode and if I turn the tablet 90° the "Call" activity changes to landscape mode.
As far as I have seen on my phones(no further investigation on other devices) If you start a call using dialer landscape or portrait, you have always a portrait call.
And I have not found any way to force a landscape screen...
I have no tablet with phone module, so I cannot test this...