<?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"/>
<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" />
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)
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;
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 (¤t_jni_env, detach_current_thread);
<?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>
* 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;
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);
static {
System.loadLibrary("gstreamer_android");
- System.loadLibrary("tutorial-1");
+ System.loadLibrary("tutorial-5");
classInit();
}
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;