Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Everything works, ready for the release

  • Loading branch information...
commit 844f207365d13a4f43f46706a74d3ebaea95a2f5 1 parent a82f6b9
Sergii Pylypenko authored
10 androidVNC/androidVNC/src/com/cuntubuntu/DataDownloader.java
@@ -675,14 +675,18 @@ private void initParent()
675 675 }
676 676 }
677 677
678   - if( fakechroot == null ) {
  678 + if( fakechroot == null )
  679 + {
679 680 try {
680 681 Status.setText( "Launching Ubuntu" );
681 682
682 683 ProcessBuilder pb = new ProcessBuilder("/system/bin/sh", "./chroot.sh", "./startx.sh");
683 684 Map<String, String> env = pb.environment();
684   - int w = Parent.getWindowManager().getDefaultDisplay().getWidth();
685   - int h = Parent.getWindowManager().getDefaultDisplay().getHeight();
  685 + int w1 = Parent.getWindowManager().getDefaultDisplay().getWidth();
  686 + int h1 = Parent.getWindowManager().getDefaultDisplay().getHeight();
  687 + int w = Math.max(w1, h1);
  688 + int h = Math.min(w1, h1);
  689 + System.out.println( "Display resolution: " + String.valueOf(w) + "x" + String.valueOf(h) );
686 690 env.put("DISPLAY_RESOLUTION", String.valueOf(w) + "x" + String.valueOf(h));
687 691 pb.directory(new File(Parent.getFilesDir().getAbsolutePath()));
688 692 fakechroot = pb.start();
1  readme.txt
@@ -28,6 +28,7 @@ How does that work.
28 28 ===================
29 29
30 30 The Ubuntu shell is launched via the "fakechroot" command, it starts Xvnc server, and connects with androidVNC client.
  31 +See the script dist/chroot.sh for details.
31 32
32 33 Compilation.
33 34 ============

0 comments on commit 844f207

Please sign in to comment.
Something went wrong with that request. Please try again.