开发者

How to prevent restarting of the application when tab's position is turned (horizontal to vertical or vice versa)?

开发者 https://www.devze.com 2023-02-26 02:31 出处:网络
I am working on Travel app. I\'m fetching data from gps and displaying it on the screen. The data vanishes when I turn my tab\'s position to horizontal or vertica开发者_开发知识库l.

I am working on Travel app. I'm fetching data from gps and displaying it on the screen. The data vanishes when I turn my tab's position to horizontal or vertica开发者_开发知识库l.

Thank you


use configChanges in the manifest

 android:configChanges="keyboardHidden|orientation" 
0

精彩评论

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