How do I tell when a configuration change is happening in Froyo?

前端 未结 5 1513
梦谈多话
梦谈多话 2021-02-08 13:18

In my app, I want a media file to play, and to keep playing if the user rotates the screen (destroying the Activity), but I want it to stop playing if the user moves to a differ

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-08 14:02

    You can also try using View#onConfigurationChanged in case its applicable in your case(i.e - you have a view for your media player and have a reference to it in the view).

提交回复
热议问题