Android Question Error when screen rotates

driesvp

Member
Licensed User
Longtime User
I made a small program with a layout and a panel to load a second layout. On start up, the data via KVS is loaded and shown without any problem.
When rotating my phone, I receive an error: object should be first initialized (EditText). This routine was called before without any problem.
Is it necessary to reinitialise the EditText views?
 

driesvp

Member
Licensed User
Longtime User
The code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
        Activity.LoadLayout("hoofd")
        pnDetail.Initialize("")                                           
        pnDetail.LoadLayout("detail")
        Activity.AddView (pnDetail,10,120,600 , 1000)
        reqManager.Initialize(Me, "http://192.50.1.253:17178")
        kvs.Initialize(File.DirDefaultExternal, "datastore")
    End If

End Sub
[\code]
 
Upvote 0
Top