I have a small piece of code that does this

Process process = Runtime.getRuntime().exec(COMMAND);
InputStream in = process.getInputStream();
InputReader inr = new InputStreamReader(in);

BufferedReader br = new BufferedReader(inr);
Then I go through a while loop to read the content of the inputStream
using the BufferedReader.

This works fine but every now and then it will throw a Failed Binder
Transaction and hang my application.

Is there any ways of getting around this? I am guessing the
inputstream is returning too big of a chunk and the app can't handle
it?  I tried doing stuff like
BufferedReader br = new BufferedReader(inr, 1000) to make it read
smaller chunks but it didn't help.

Please help me.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to