开发者

Android Actvities problem for getting result

开发者 https://www.devze.com 2023-01-22 05:36 出处:网络
I have two activities A & b. in A i have one button which takes me to the activity B. in Activity B i have one edit text. when user enter some values in edittext i m getting 开发者_C百科the value

I have two activities A & b.

in A i have one button which takes me to the activity B. in Activity B i have one edit text. when user enter some values in edittext i m getting 开发者_C百科the value in some variable. and i want to pass this value back to activity A. i applied the Bundle concept bt it is force closing my app.

pls anybody can help me?

thanks in advance.


you should use Intent.putExtra() to transfer the value.

0

精彩评论

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