Android share display on another devices
问题 i'm working on share the tablet display with more than one table (all rooted) connected through WiFi , i'm using the following approach (all inside one thread) : 1- i take a screen shot. Process sh = Runtime.getRuntime().exec("su", null,null); OutputStream os = sh.getOutputStream(); os.write(("/system/bin/screencap -P " + "/sdcard/test/img.png").getBytes("ASCII")); os.flush(); os.close(); sh.waitFor(); 2- compress the screen shot image. Bitmap mBitmap = BitmapFactory.decodeFile(Environment