Try it. Add the following permissions to the Robotium manifest file:
<uses-permission android:name="android.permission.READ_LOGS" />
Then create a stream in your installation method and do the following:
Process proc = Runtime.getRuntime().exec("logcat -d"); BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream()));
Then read using:
reader.readLine()
source share