I need to do a icmp ping to a host from my android device. I need to measure the round trip time. I am proficient with android and java, just dont know what library to use. How do I do it? Is it possible via 3G, Edge?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Yes you can ping with 3G, edge, wireless whatever, as long as you have connectivity. The only limitation is in the emulator, see here: http://groups.google.com/group/android-developers/browse_thread/thread/8657506be6819297
Here is my ping function:
You will probably want to use the
isReachable
- see more details in the Android doc. However, apparently some networks block ICMP. There is a post where you can read more about this issue here.you can use the open source code of terminal emulator available here
build the library(using cygwin and android-ndk) file and then use