sensor orientation

pruebas6969

Member
Licensed User
Longtime User
hello good morning
We are developing an application that needs to know when you change the of the tablet in vertical or horizontal
I tried phoneorientarion but not working .
tnx for all and sorry for my bat enlish
 

pruebas6969

Member
Licensed User
Longtime User
resume event is already busy with another code

There's no event, when you change the orientation Activity_Resume triggers, you can add the code posted above there if you like.

yes but I have the when the tablet back from the hibernation
 
Upvote 0

pruebas6969

Member
Licensed User
Longtime User
is the same event

I don't understand what you mean by "resume event is already busy with another code", you can add several pieces of code there, whatever you add there it will be executed.

Is true, but how I can distinguish between the tablet change the orientation and when the tablet ibernation pass mode and is reactivated again ???
 
Upvote 0
Top