开发者

android activity callback

I'm doing application, I have mainscreen and calling next screen by main screen. In nextscreen by selecting image in gallery I wanted to go back main sc开发者_开发技巧reen by getting image url. How to do this?


You should call the second Activity by startActivityForResult(). Then there you return the image url as the result of the second acitivty to the first activity. The result of the second activity you can get in the first activity in the method onActivityResult()

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜