Does system kills app and starts again when display orientation is changed?
On sim yes, but I don't how it runs on device (maybe only layout).
Does system kills app and starts again when display orientation is changed?
On sim yes, but I don't how it runs on device (maybe only layout).
Which devices are you asking about and which types of apps?
Widget e.g. Rino.
Does it mean each device is handled in other way?
When user see app on screen can choose orientation from UI or rotate device?
On a rino, there are 3 different display modes
1) lock portrait
2) lock landscape
3) Auto
With auto, it changes between landscape and portrait when you turn the device. If a widget is running, it keeps running, but width and height switch and you can see this in onLayout.
While I've supported the Rino for years, I don't recall ever hearing from a user with one. Because of the walkie-talkie feature, I understand it's only available in some places, like the US, due to the radio frequency.
Also like other non-wearables (edge), widgets don't time out
Looks like my reply was eaten by the forum. With the rino, you can lock the orientation in settings, or you can use auto where turning the device changes it. With auto, if you are running a widget, it keeps running and onLayout gets called so your app can adjust.
The problem is when when to calculate members. If app is started after changing orientation or at least onLayout is called again you can calculate and save value to member. In other case you have to calculate all in onUpdate.
With "Auto" on the Rino, onLayout gets called when the orientation changes, and I adjust things there based on width/height of the dc, There is noting special in onUpdate().
so it's enough to calculate thing in onLayout(), thx