Personally I would diligently search for the correct sub forum to ask my question if they existed example HTTPUtil.
This post got me thinking:::
http://www.b4x.com/forum/basic4android-updates-questions/15324-httputils-rare-problem.html#post86965
I suppose I don't understand the url done sub.. versus the Job done Sub. My calls are single calls to a web service, there's just a lot of them.
Also I find myself adding calls BACK to Activity_Create(False) and in addition to checking for the FirstTime = false, I'm checking if the last list was filled or some similar logic so I can continue my "preload Processing" These multiple calls BACK into Activity_Create. Does this seem to be a valid acceptable solution ??? Doesn't Stuff get destroyed and re created when I do this re-call into Activity_Create() So all of those numbered steps below have what I consider a hack added to their section of the jobDone Sub to get Code Focus BACK into the Activity Main and allow the continued processing.
Was this clever or stupid?
Please ANY & ALL insight is greatly appreciated !!! :sign0137:
This post got me thinking:::
http://www.b4x.com/forum/basic4android-updates-questions/15324-httputils-rare-problem.html#post86965
I suppose I don't understand the url done sub.. versus the Job done Sub. My calls are single calls to a web service, there's just a lot of them.
Also I find myself adding calls BACK to Activity_Create(False) and in addition to checking for the FirstTime = false, I'm checking if the last list was filled or some similar logic so I can continue my "preload Processing" These multiple calls BACK into Activity_Create. Does this seem to be a valid acceptable solution ??? Doesn't Stuff get destroyed and re created when I do this re-call into Activity_Create() So all of those numbered steps below have what I consider a hack added to their section of the jobDone Sub to get Code Focus BACK into the Activity Main and allow the continued processing.
Was this clever or stupid?
Please ANY & ALL insight is greatly appreciated !!! :sign0137:
B4X:
Sub Activity_Create(FirstTime As Boolean)
#Region------------{ local varaibles }--------------------
#End Region
HttpUtils.CallbackActivity = "postMain" ' "rfCartDataWebService" Attempt To centralize Web Serv Stuff = FAIL!
HttpUtils.CallbackJobDoneSub = "JobDone"
HttpUtils.CallbackUrlDoneSub = "UrlDone"
#Region-----------{Initial Cart Start Up Harvests}-----------------------------
'#1 Get Settings from File
'localSetTypObj = pickCartSettingsMain.HarvestSettings Old Style Retire ??
If FirstTime Then
m_cartState = pickCartSettingsMain.HarvestCartStateFromFile
End If
'#2 Get MapLocations Web Service call On Success Fills global mapLocList
Try
If bMapLocationsFound = False Then
GetLocMap
End If
'#3 Get Order Assignments if MapList has been obtained
If mapLocList.Size > 1 AND bOrderAssignmentsComplete = False Then
FetchOrderAssignments
End If
'#4 lstOrders global starts empty and is filled per content of orderAssignments List from step #3
If lstOrders.Size < iOrdAssignmentsSize Then
HarvestOrderDataForAll
End If
Catch
' Log - Local if no wifi to call web service
'OR Just wrap in Loggin Utility Method To Do both simultaneously.
End Try
#End Region
#Region----------------------{ User Interface creation }--------------------------
'#Region------------{ xyz }--------------------#End Region
'----Left Top Width Height------- ' 1280 x 800Reference
#Region---------------------{ Create header }--------------------
panHeader.Initialize("")
panHeader = uiLogic.InitHeaderBlock(panHeader)
Activity.AddView(panHeader,0%x,0%y,1280dip,80dip)
#End Region
#Region---------------------{ Create Order Bins }--------------------