开发者

How to get the value back from IN/OUT argument with nested activities

开发者 https://www.devze.com 2023-03-02 10:51 出处:网络
Hi i h开发者_JAVA技巧ave 2 nested activities. Both have parameters called \'SessionID\'. Child activity have an IN/OUT argument called \'SessionIDParam\'.

Hi i h开发者_JAVA技巧ave 2 nested activities. Both have parameters called 'SessionID'. Child activity have an IN/OUT argument called 'SessionIDParam'.

I set the SessionIDParam of the child from SessionID of the parent. In Child activity i set the SessionID of the child from SessionIDParam argument.

SessionID of the child changes during the execution of the child activity. At the end of the child i want the SessionID of the parent to be set to the new value of the SessionID of the child. I guessed the because that 'SessionIDParam' is set as 2 way i would be enough. But SessionID of the parent is not set.

What do i have to do other then that?

Thanks...


Yeah i solved my own problem :)

The was assignin new value to SessionID of the child. I was expecting that to change also SessionIDParam. When i reset SessionID of the child to SessionIDParam before the end of the activity, the IN/OUT parameter returned the value to parent activity and updated SessionID of the parent.

Thanks anyway...

0

精彩评论

暂无评论...
验证码 换一张
取 消