Calling camera app recreates android activity

元气小坏坏 提交于 2019-12-01 04:13:05

问题


I am working on a tabbed activity which is implemented using ActivityGroup. When I call the camera app and returns back its always calling onCreate() and recreates the activity. Because of this the callback to onActivityResult is having a null data.

I am adding this inside manifest file. But no change.

android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"

I am having this issue only on samsung galaxy s3. I have tested the same on galaxy s2,HTC, galaxy nexus. All devices works fine.

How can I do this properly?

Thanks

来源:https://stackoverflow.com/questions/13335357/calling-camera-app-recreates-android-activity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!