I want that when I turn the phone and change the screen orientation, the video continue playing where it was playing and no start again. I have tried change the Manifest:
android:configChanges="keyboardHidden|orientation"
and change in my activity
public void onConfigurationChanged(Configuration newConfig)
{
super.onConfigurationChanged(newConfig);
setContentView(R.layout.main);
InitializeUI();
}
does not work and start the video again when I change the orientation. Can anyone help me, please?
Thank you very much for the help, but I think that I have not explained well, my English is not very good.
In the application I'm developing, I have a video that plays automatically when I turn the phone, the video starts again. I need, continues the video where he was playing. This problem is similar to this one. I have tried to modify the code as explained here, but I have not worked. I've also been looking at the links you gave me you, but neither works. Is there a method, changing classes to solve the problem?. Thank you very much.