Rename tutorial-1 to tutorial-5
authorXavi Artigas <xartigas@fluendo.com>
Wed, 3 Oct 2012 12:17:08 +0000 (14:17 +0200)
committerXavi Artigas <xartigas@fluendo.com>
Wed, 3 Oct 2012 12:17:08 +0000 (14:17 +0200)
15 files changed:
gst-sdk/tutorials/android-tutorial-5/AndroidManifest.xml [moved from gst-sdk/tutorials/android-tutorial-1/AndroidManifest.xml with 90% similarity]
gst-sdk/tutorials/android-tutorial-5/jni/Android.mk [moved from gst-sdk/tutorials/android-tutorial-1/jni/Android.mk with 95% similarity]
gst-sdk/tutorials/android-tutorial-5/jni/tutorial-5.c [moved from gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c with 99% similarity]
gst-sdk/tutorials/android-tutorial-5/res/drawable-ldpi/gst_sdk_icon.png [moved from gst-sdk/tutorials/android-tutorial-1/res/drawable-ldpi/gst_sdk_icon.png with 100% similarity]
gst-sdk/tutorials/android-tutorial-5/res/drawable-xhdpi/gst_sdk_icon.png [moved from gst-sdk/tutorials/android-tutorial-1/res/drawable-xhdpi/gst_sdk_icon.png with 100% similarity]
gst-sdk/tutorials/android-tutorial-5/res/drawable/file.png [moved from gst-sdk/tutorials/android-tutorial-1/res/drawable/file.png with 100% similarity]
gst-sdk/tutorials/android-tutorial-5/res/drawable/folder.png [moved from gst-sdk/tutorials/android-tutorial-1/res/drawable/folder.png with 100% similarity]
gst-sdk/tutorials/android-tutorial-5/res/drawable/icon.png [moved from gst-sdk/tutorials/android-tutorial-1/res/drawable/icon.png with 100% similarity]
gst-sdk/tutorials/android-tutorial-5/res/layout/file_dialog_main.xml [moved from gst-sdk/tutorials/android-tutorial-1/res/layout/file_dialog_main.xml with 100% similarity]
gst-sdk/tutorials/android-tutorial-5/res/layout/file_dialog_row.xml [moved from gst-sdk/tutorials/android-tutorial-1/res/layout/file_dialog_row.xml with 100% similarity]
gst-sdk/tutorials/android-tutorial-5/res/layout/main.xml [moved from gst-sdk/tutorials/android-tutorial-1/res/layout/main.xml with 100% similarity]
gst-sdk/tutorials/android-tutorial-5/res/values/strings.xml [moved from gst-sdk/tutorials/android-tutorial-1/res/values/strings.xml with 84% similarity]
gst-sdk/tutorials/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java [moved from gst-sdk/tutorials/android-tutorial-1/src/com/gst_sdk_tutorials/tutorial_1/Tutorial1.java with 98% similarity, mode: 0644]
gst-sdk/tutorials/android-tutorial-5/src/com/lamerman/FileDialog.java [moved from gst-sdk/tutorials/android-tutorial-1/src/com/lamerman/FileDialog.java with 99% similarity]
gst-sdk/tutorials/android-tutorial-5/src/com/lamerman/SelectionMode.java [moved from gst-sdk/tutorials/android-tutorial-1/src/com/lamerman/SelectionMode.java with 100% similarity]

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-      package="com.gst_sdk_tutorials.tutorial_1"
+      package="com.gst_sdk_tutorials.tutorial_5"
       android:versionCode="1"
       android:versionName="1.0">
     <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="14"/>
@@ -8,7 +8,7 @@
     <uses-feature android:glEsVersion="0x00020000"/>
     <application android:label="@string/app_name"
                  android:icon="@drawable/gst_sdk_icon">
-        <activity android:name=".Tutorial1"
+        <activity android:name=".Tutorial5"
                   android:label="@string/app_name">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
@@ -16,8 +16,8 @@ LOCAL_PATH := $(call my-dir)
 
 include $(CLEAR_VARS)
 
-LOCAL_MODULE    := tutorial-1
-LOCAL_SRC_FILES := tutorial-1.c
+LOCAL_MODULE    := tutorial-5
+LOCAL_SRC_FILES := tutorial-5.c
 LOCAL_SHARED_LIBRARIES := gstreamer_android
 LOCAL_LDLIBS := -landroid
 include $(BUILD_SHARED_LIBRARY)
@@ -460,7 +460,7 @@ static JNINativeMethod native_methods[] = {
 jint JNI_OnLoad(JavaVM *vm, void *reserved) {
   JNIEnv *env = NULL;
 
-  GST_DEBUG_CATEGORY_INIT (debug_category, "tutorial-1", 0, "Android tutorial 1");
+  GST_DEBUG_CATEGORY_INIT (debug_category, "tutorial-5", 0, "Android tutorial 5");
 
   java_vm = vm;
 
@@ -468,7 +468,7 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved) {
     GST_ERROR ("Could not retrieve JNIEnv");
     return 0;
   }
-  jclass klass = (*env)->FindClass (env, "com/gst_sdk_tutorials/tutorial_1/Tutorial1");
+  jclass klass = (*env)->FindClass (env, "com/gst_sdk_tutorials/tutorial_5/Tutorial5");
   (*env)->RegisterNatives (env, klass, native_methods, G_N_ELEMENTS(native_methods));
 
   pthread_key_create (&current_jni_env, detach_current_thread);
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
-    <string name="app_name">Android tutorial 1</string>
+    <string name="app_name">Android tutorial 5</string>
     <string name="button_play">Play</string>
     <string name="button_stop">Stop</string>
     <string name="button_select">Select</string>
-    <string name="filechooser_name">Android tutorial 1</string>
+    <string name="filechooser_name">Android tutorial 5</string>
     <string name="location">Location</string>
     <string name="cant_read_folder">folder can\'t be read!</string>
     <string name="nnew">New</string>
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.gst_sdk_tutorials.tutorial_1;
+package com.gst_sdk_tutorials.tutorial_5;
 
 import java.text.SimpleDateFormat;
 import java.util.Date;
@@ -38,7 +38,7 @@ import android.widget.SeekBar.OnSeekBarChangeListener;
 import android.widget.TextView;
 import android.widget.Toast;
 
-public class Tutorial1 extends Activity implements SurfaceHolder.Callback, OnSeekBarChangeListener {
+public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSeekBarChangeListener {
     private native void nativeInit();
     private native void nativeFinalize();
     private native void nativeSetUri(String uri);
@@ -222,7 +222,7 @@ public class Tutorial1 extends Activity implements SurfaceHolder.Callback, OnSee
 
     static {
         System.loadLibrary("gstreamer_android");
-        System.loadLibrary("tutorial-1");
+        System.loadLibrary("tutorial-5");
         classInit();
     }
 
@@ -33,7 +33,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.TreeMap;
 
-import com.gst_sdk_tutorials.tutorial_1.R;
+import com.gst_sdk_tutorials.tutorial_5.R;
 
 import android.app.AlertDialog;
 import android.app.ListActivity;