Android Question API not executing second time from B4Xpage_created

AndroidMadhu

Active Member
Licensed User
I am facing a problem that first time the API is being called from b4xpage_created
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Dim jobFetchTripDetail As HttpJob
jobFetchTripDetail.Initialize("FetchDriver",Me)
jobFetchTripDetail.Download("http://"& B4XPages.MainPage.srvIP &":xxxx/getCustTripDetail?auth=" & B4XPages.MainPage.SelectedAuthCode)

But second time when I call/open again the same activity the API is not executed at B4xPage_Appear.

please advice how can I call the same API at second time when the same activity opens.

Thanks
 

josejad

Expert
Licensed User
Longtime User
Have you tried in the B4XPage_Foreground event?

 
Upvote 0
Top