开发者

My activity is refreshing or restarting in after onactivity result, how to avoid that

开发者 https://www.devze.com 2023-04-12 17:03 出处:网络
I disable a button in 开发者_运维百科my activity. I am calling my activity using startactivity android.media.provider.VIDEO_CAPTURE in on activity result I enable the button. In onactivityresult my ac

I disable a button in 开发者_运维百科my activity. I am calling my activity using startactivity android.media.provider.VIDEO_CAPTURE in on activity result I enable the button. In onactivityresult my activity restarts or resumes in android. Can anybody tell me how to avoid this?

Thanks


First onActivityResult() is called. Then, onResume() is called.

If you don't want to do anything after onActivityResult, then don't override onResume() method.

0

精彩评论

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