I have an app that has an edit box and noticed when I move the phone from portrait to landscape mode any text in the box is emptied when the orientation changes (it has two layouts, one 320x480 and one 480x320 for landscape mode).
If I was to keep the edit box contents copied in a string variable is there a way to say to the device "if the phone has changed to landscape mode make the edit box contents equal those in the string variable"?
I know that I can access the phone orientation but I don't want to measure individual changes so is there some way to check for a change in screen width so when one is detected I can make the editbox show the data in the string variable?
Dave
If I was to keep the edit box contents copied in a string variable is there a way to say to the device "if the phone has changed to landscape mode make the edit box contents equal those in the string variable"?
I know that I can access the phone orientation but I don't want to measure individual changes so is there some way to check for a change in screen width so when one is detected I can make the editbox show the data in the string variable?
Dave