Android Question I am lost with ACtivity cicle

mrjaw

Active Member
Licensed User
Longtime User
Hi!
I am trying to do an module activity that show me a list of customer , pick up one and return this custome to other activity that it needs.

I did the module and Works fine , I use Process_variables to update when pick up the customer and finish this activity my problema is where control returns when this activity finish?

Ex:
I have a process/activity where it needs select a customer before start, but I dont know where to use my customer module for executing before start activity .

I put the customer activity , Startactivity, Resume phase the other activity and Works but when it finish and try to load the form of the other I am getting an error about initialize a spinner that I use

java.lang.RuntimeException: Object should first be initialized (Spinner).

So, where I should use the spinner to avoid this error /?

Sorry for my bad english.
 

LucaMs

Expert
Licensed User
Longtime User
I would prefer to use CallSubDelayed2 (YourReceivingActivity, "RoutineInThatActivity", CustomerID)
(from the inside of lvwCustomer_ItemClick event routine).

(You could pass a custom object of type Customer instead of CustomerID)



[To understand the cycles of activity, write a Log in each of them]
 
Upvote 0
Top