Re-namespace Android tutorials for consistency
authorSebastian Dröge <sebastian@centricular.com>
Fri, 31 Aug 2018 07:12:21 +0000 (10:12 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 31 Aug 2018 07:13:00 +0000 (10:13 +0300)
examples/tutorials/android/android-tutorial-4/AndroidManifest.xml
examples/tutorials/android/android-tutorial-4/jni/tutorial-4.c
examples/tutorials/android/android-tutorial-4/res/layout/main.xml
examples/tutorials/android/android-tutorial-4/src/org/freedesktop/gstreamer/tutorials/tutorial_4/GStreamerSurfaceView.java [moved from examples/tutorials/android/android-tutorial-4/src/com/gst_sdk_tutorials/tutorial_4/GStreamerSurfaceView.java with 98% similarity]
examples/tutorials/android/android-tutorial-4/src/org/freedesktop/gstreamer/tutorials/tutorial_4/Tutorial4.java [moved from examples/tutorials/android/android-tutorial-4/src/com/gst_sdk_tutorials/tutorial_4/Tutorial4.java with 99% similarity]
examples/tutorials/android/android-tutorial-5/AndroidManifest.xml
examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c
examples/tutorials/android/android-tutorial-5/res/layout/main.xml
examples/tutorials/android/android-tutorial-5/src/com/lamerman/FileDialog.java
examples/tutorials/android/android-tutorial-5/src/org/freedesktop/gstreamer/tutorials/tutorial_5/GStreamerSurfaceView.java [moved from examples/tutorials/android/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/GStreamerSurfaceView.java with 98% similarity]
examples/tutorials/android/android-tutorial-5/src/org/freedesktop/gstreamer/tutorials/tutorial_5/Tutorial5.java [moved from examples/tutorials/android/android-tutorial-5/src/com/gst_sdk_tutorials/tutorial_5/Tutorial5.java with 99% similarity]

index 9885cc1..aa06aab 100644 (file)
@@ -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_4"
+      package="org.freedesktop.gstreamer.tutorials.tutorial_4"
       android:versionCode="1"
       android:versionName="1.0">
     <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="14"/>
index e792161..a05aa0d 100644 (file)
@@ -553,7 +553,7 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved) {
     __android_log_print (ANDROID_LOG_ERROR, "tutorial-4", "Could not retrieve JNIEnv");
     return 0;
   }
-  jclass klass = (*env)->FindClass (env, "com/gst_sdk_tutorials/tutorial_4/Tutorial4");
+  jclass klass = (*env)->FindClass (env, "org/freedesktop/gstreamer/tutorials/tutorial_4/Tutorial4");
   (*env)->RegisterNatives (env, klass, native_methods, G_N_ELEMENTS(native_methods));
 
   pthread_key_create (&current_jni_env, detach_current_thread);
index a4215ef..20df7a3 100644 (file)
             android:indeterminate="false" />
     </LinearLayout>
 
-    <com.gst_sdk_tutorials.tutorial_4.GStreamerSurfaceView
+    <org.freedesktop.gstreamer.tutorials.tutorial_4.GStreamerSurfaceView
         android:id="@+id/surface_video"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_gravity="center_vertical|center_horizontal" />
 
-</LinearLayout>
\ No newline at end of file
+</LinearLayout>
index 6a33328..a43b75f 100755 (executable)
@@ -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_5"
+    package="org.freedesktop.gstreamer.tutorials.tutorial_5"
     android:versionCode="1"
     android:versionName="1.0" >
 
index 81e9524..ab492df 100755 (executable)
@@ -561,7 +561,7 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved) {
     __android_log_print (ANDROID_LOG_ERROR, "tutorial-5", "Could not retrieve JNIEnv");
     return 0;
   }
-  jclass klass = (*env)->FindClass (env, "com/gst_sdk_tutorials/tutorial_5/Tutorial5");
+  jclass klass = (*env)->FindClass (env, "org/freedesktop/gstreamer/tutorials/tutorial_5/Tutorial5");
   (*env)->RegisterNatives (env, klass, native_methods, G_N_ELEMENTS(native_methods));
 
   pthread_key_create (&current_jni_env, detach_current_thread);
index 70ee015..10c0169 100755 (executable)
@@ -68,7 +68,7 @@
             android:indeterminate="false" />
     </LinearLayout>
 
-    <com.gst_sdk_tutorials.tutorial_5.GStreamerSurfaceView
+    <org.freedesktop.gstreamer.tutorials.tutorial_5.GStreamerSurfaceView
         android:id="@+id/surface_video"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
index e162522..b3c2269 100644 (file)
@@ -45,7 +45,7 @@ import android.widget.ListView;
 import android.widget.SimpleAdapter;
 import android.widget.TextView;
 
-import com.gst_sdk_tutorials.tutorial_5.R;
+import org.freedesktop.gstreamer.tutorials.tutorial_5.R;
 
 /**
  * Activity para escolha de arquivos/diretorios.