summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-11-13 16:57:09 +0100
committerSven Gothel <[email protected]>2012-11-13 16:57:09 +0100
commit1f33b196d339006d132fc6adafa345913bc08f53 (patch)
tree6f3160ba4f8d1d24c466061ec5ee0e6a7274f87d /src/newt/classes/jogamp
parent1f297402b5cf6d0be8d2d852ee6704680984c35b (diff)
NewtVersionActivity: Dump information in logcat
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/driver/android/NewtVersionActivity.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/android/NewtVersionActivity.java b/src/newt/classes/jogamp/newt/driver/android/NewtVersionActivity.java
index a49f1648c..4bcbb104d 100644
--- a/src/newt/classes/jogamp/newt/driver/android/NewtVersionActivity.java
+++ b/src/newt/classes/jogamp/newt/driver/android/NewtVersionActivity.java
@@ -60,8 +60,10 @@ public class NewtVersionActivity extends NewtBaseActivity {
final ScrollView scroller = new ScrollView(getActivity());
scroller.addView(tv);
viewGroup.addView(scroller, new android.widget.FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, Gravity.TOP|Gravity.LEFT));
-
- tv.setText(VersionUtil.getPlatformInfo()+Platform.NEWLINE+GlueGenVersion.getInstance()+Platform.NEWLINE+JoglVersion.getInstance()+Platform.NEWLINE);
+
+ final String info1 = VersionUtil.getPlatformInfo()+Platform.NEWLINE+GlueGenVersion.getInstance()+Platform.NEWLINE+JoglVersion.getInstance()+Platform.NEWLINE;
+ Log.d(MD.TAG, info1);
+ tv.setText(info1);
// create GLWindow (-> incl. underlying NEWT Display, Screen & Window)
GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GLES2));
@@ -82,9 +84,11 @@ public class NewtVersionActivity extends NewtBaseActivity {
sb.append(drawable.getNativeSurface().getGraphicsConfiguration().getRequestedCapabilities()).append(Platform.NEWLINE).append(Platform.NEWLINE);
sb.append("Chosen: ").append(Platform.NEWLINE);
sb.append(drawable.getChosenGLCapabilities()).append(Platform.NEWLINE).append(Platform.NEWLINE);
+ final String info2 = sb.toString();
+ Log.d(MD.TAG, info2);
viewGroup.post(new Runnable() {
public void run() {
- tv.append(sb.toString());
+ tv.append(info2);
viewGroup.removeView(androidGLView);
} } );
}