Formatting
authorXavi Artigas <xartigas@fluendo.com>
Thu, 13 Sep 2012 10:05:43 +0000 (12:05 +0200)
committerXavi Artigas <xartigas@fluendo.com>
Thu, 13 Sep 2012 10:05:43 +0000 (12:05 +0200)
gst-sdk/tutorials/android-tutorial-1/src/com/gst_sdk_tutorials/tutorial_1/Tutorial1.java

index 7df52e9..7bc71dc 100755 (executable)
@@ -73,15 +73,11 @@ public class Tutorial1 extends Activity implements SurfaceHolder.Callback {
     private void setMessage(final String message) {
         final TextView tv = (TextView) this.findViewById(R.id.textview_message);
         Log.d("GStreamer", "Received message " + message);
-        try {
-        runOnUiThread (new Runnable() {public void run()
-          {
-                    tv.setText(message);
-                }
-            });
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
+        runOnUiThread (new Runnable() {
+          public void run() {
+            tv.setText(message);
+          }
+        });
     }
 
     static {