Re: [android-developers] Re: The emulator died when I execute ping in adb shell repeatly
Besides, the ICMP protocol is not supported in the emulator, so ping will never work, even if you're root. 2011/8/25 Luiz Carvalho maximusm...@gmail.com You need root permissions for run ping... use this: http://forum.xda-developers.com/showthread.php?t=682828 On Jul 28, 11:27 pm, nanhu tianlifeixue...@gmail.com wrote: I want to analyse the network health On 7月29日, 上午10时00分, Nick Risaro nris...@gmail.com wrote: I think that making a simple HttpRequest for a file in the server is a best solution, I'm assuming you want to do a health check. On Thu, Jul 28, 2011 at 10:53 PM, nanhu tianlifeixue...@gmail.com wrote: our program need topinga host repeatly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The emulator died when I execute ping in adb shell repeatly
You need root permissions for run ping... use this: http://forum.xda-developers.com/showthread.php?t=682828 On Jul 28, 11:27 pm, nanhu tianlifeixue...@gmail.com wrote: I want to analyse the network health On 7月29日, 上午10时00分, Nick Risaro nris...@gmail.com wrote: I think that making a simple HttpRequest for a file in the server is a best solution, I'm assuming you want to do a health check. On Thu, Jul 28, 2011 at 10:53 PM, nanhu tianlifeixue...@gmail.com wrote: our program need topinga host repeatly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The emulator died when I execute ping in adb shell repeatly
It seams hang at bufferReader.readLine() when read from InputStream On 7月28日, 上午9时19分, nanhu tianlifeixue...@gmail.com wrote: only when the ping execution failed,the problem can appear On 7月27日, 下午2时57分, nanhu tianlifeixue...@gmail.com wrote: when I execute ping -c 20 -i 0.2 -s 92 -W 1www.google.com in adb shell repeatly , after dozens of times , it can not execute , and I can not login another shell -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The emulator died when I execute ping in adb shell repeatly
On Wednesday, July 27, 2011 7:57:30 AM UTC+1, nanhu wrote: when I execute ping -c 20 -i 0.2 -s 92 -W 1 www.google.com in adb shell repeatly , after dozens of times My advice: don't do that. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The emulator died when I execute ping in adb shell repeatly
I was tempted to answer his first post that way, but I refrained. Why did you cave in?;) Seriously: he probably simply shouldn't do that, since, among other reasons, Google does not have any implicit responsibility to reply to such pings, but I am not too surprised he thinks it is a bug. On Jul 28, 4:58 am, String sterling.ud...@googlemail.com wrote: On Wednesday, July 27, 2011 7:57:30 AM UTC+1, nanhu wrote: when I execute ping -c 20 -i 0.2 -s 92 -W 1www.google.com in adb shell repeatly , after dozens of times My advice: don't do that. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The emulator died when I execute ping in adb shell repeatly
details as follows: 1. our program need to ping a host repeatly , but it hang after executing for some times . the concrete ping code is: ProcessBuilder processBuilder=new ProcessBuilder(); Process process = processBuilder.command(ping,-W,1,- c,20,www.google.com).redirectErrorStream(true).start(); BufferedReader bufferReader = new BufferedReader(new InputStreamReader(process.getInputStream(),GBK)); String readline; while ((readline = bufferReader.readLine()) != null) { Log.i(PING, result : + readline); } 2. In the first,we suspect our code has bugs , so we execute ping -c 20 -W 1 www.google.com in the adb shell repeatly by hand ,after dozens of times , the shell hang ,and we can not login another shell . 3. When I execute ping -c 20 -W 1 127.0.0.1 , because it ping successfully every time ,the program seems can work forever -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: The emulator died when I execute ping in adb shell repeatly
I think that making a simple HttpRequest for a file in the server is a best solution, I'm assuming you want to do a health check. On Thu, Jul 28, 2011 at 10:53 PM, nanhu tianlifeixue...@gmail.com wrote: our program need to ping a host repeatly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The emulator died when I execute ping in adb shell repeatly
I want to analyse the network health On 7月29日, 上午10时00分, Nick Risaro nris...@gmail.com wrote: I think that making a simple HttpRequest for a file in the server is a best solution, I'm assuming you want to do a health check. On Thu, Jul 28, 2011 at 10:53 PM, nanhu tianlifeixue...@gmail.com wrote: our program need to ping a host repeatly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The emulator died when I execute ping in adb shell repeatly
only when the ping execution failed,the problem can appear On 7月27日, 下午2时57分, nanhu tianlifeixue...@gmail.com wrote: when I execute ping -c 20 -i 0.2 -s 92 -W 1www.google.com in adb shell repeatly , after dozens of times , it can not execute , and I can not login another shell -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en