I complied your program with no errors, the autoscale worked fine. As written you program does nothing the sub,
B4X:
Sub Activity_Resume
txtUID.Initialize("")
txtpin.Initialize("")
txtCO.Initialize("")
Activity.Finish
End Sub
will end the program before anything can happen I had to remove the 'Activity.Finish'.
In all the activities except 'Main' you are still loading the layout in the "If FirstTime Then" which means it will be loaded the first time but not on any subsequent visits/orientation change. Erel normally recommends 'HttpUtils2' for HttpRequests as it is much more robust. the flow of your program is a bit hard to follow with the mix of code and designer added views.
BTW: when I click on the exit button from the details presentation I was under the impression that it would return to resume but failed to ponder the results of placeing Activity.Finish there. When that button is clicked I was to clear the login information and exit the app maybe even leaving it for login by another person but forcing them to use their assigned information to do so.
Thx R
P.S Sometimes my logic is a bit fuzzy as this was one of my first programs that now is wanted in the market place.