diff options
author | Sven Gothel <[email protected]> | 2015-09-15 06:36:35 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-09-15 06:36:35 +0200 |
commit | 3e40d97a9a7a60e746b3703d2c7d3f4884159a52 (patch) | |
tree | b7682721b8486025d18adcea3e3dba79e510622b /src/java/jogamp/android/launcher/MainLauncher.java | |
parent | 1c4e2d3ea379fe6578dfb84e10f22729b71b1ae5 (diff) |
Bug 1213: Use InterruptSource.Thread
Diffstat (limited to 'src/java/jogamp/android/launcher/MainLauncher.java')
-rw-r--r-- | src/java/jogamp/android/launcher/MainLauncher.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/jogamp/android/launcher/MainLauncher.java b/src/java/jogamp/android/launcher/MainLauncher.java index 0dc6b4a..e0eff7d 100644 --- a/src/java/jogamp/android/launcher/MainLauncher.java +++ b/src/java/jogamp/android/launcher/MainLauncher.java @@ -33,6 +33,8 @@ import java.lang.reflect.Method; import java.util.Arrays; import java.util.List; +import com.jogamp.common.util.InterruptSource; + import android.app.Activity; import android.net.Uri; import android.os.Bundle; @@ -117,17 +119,17 @@ public class MainLauncher extends Activity { public void onResume() { Log.d(TAG, "onResume - S - "+Thread.currentThread().getName()); super.onResume(); - final Thread mainThread = new Thread("Main") { + final Thread mainThread = new InterruptSource.Thread(null, null, "Main") { public void run() { try { - Log.d(TAG, "onResume - main.0 - "+Thread.currentThread().getName()); + Log.d(TAG, "onResume - main.0 - "+java.lang.Thread.currentThread().getName()); mainClazzMain.invoke(null, new Object[] { mainClassArgs } ); } catch (final InvocationTargetException ite) { ite.getTargetException().printStackTrace(); } catch (final Throwable t) { t.printStackTrace(); } - Log.d(TAG, "onResume - main.X -> finish() - "+Thread.currentThread().getName()); + Log.d(TAG, "onResume - main.X -> finish() - "+java.lang.Thread.currentThread().getName()); finish(); } }; mainThread.start(); |