Screen Recording kitkat with button
问题 i want create a button that starts the new screenrecording feature in Android 4.4 Kit Kat.. I create a button and i tryied to do in this way: start.setOnClickListener(new OnClickListener() { public void onClick(View v){ String record ="su screenrecord — bit rate 8000000 --time-limit 30 "+recordfolder+"Record.mp4"; recordfolder.mkdir(); try { Process screenrecording = Runtime.getRuntime().exec(record); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); It