Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String[] command1 = null;
- command1 = new String[] {
- "adb", "shell", "monkey", "-p", " com.google.android.apps.maps", "-v", "500" };
- try {
- Process process = Runtime.getRuntime().exec(command1);
- BufferedReader bufferedReader = new BufferedReader(
- new InputStreamReader(process.getInputStream()));
- process.waitFor();
- String s;
- Log.d("BUFFEREDREADER_DUMP", "---------Begin---------");
- while ((s=bufferedReader.readLine())!=null)
- {
- System.out.println(s);
- }
- Log.d("BUFFEREDREADER_DUMP", "---------End---------");
- }catch (Exception e){
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment