From b0282e731f80d3423e149cae84d34ed38998bed0 Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Wed, 7 Nov 2012 13:16:09 +0100 Subject: [PATCH] Save last visited folder in the application state, so that it survives orientation changes, for example --- .../src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java b/gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java index 39d6dcfe35..1518de0498 100644 --- a/gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java +++ b/gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java @@ -114,6 +114,7 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee position = savedInstanceState.getInt("position"); duration = savedInstanceState.getInt("duration"); mediaUri = savedInstanceState.getString("mediaUri"); + last_folder = savedInstanceState.getString("last_folder"); Log.i ("GStreamer", "Activity created with saved state:"); } else { is_playing_desired = false; @@ -152,6 +153,7 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee outState.putInt("position", position); outState.putInt("duration", duration); outState.putString("mediaUri", mediaUri); + outState.putString("last_folder", last_folder); } protected void onDestroy() {