Advertisement


Icon for "manual ping"


Question

I have an app that connects to a server (a computer) over bluetooth. Once the connection is made, there are chances that the connection drops (because the user can physically switch of bluetooth) so I have a mechanism to "ping" and check if the server is up and running.I want users to manually be able to ping a server.

Because "ping" is somewhat a technical term, how do I represent it graphically ?

One approach that I found with quick googling was to show a doorbell with a hand, something like this :

Ping Idea

(image via iconfinder.com)

This is an Android app and the icon will appear as an action button.

2015/05/16
1
0
5/16/2015 3:49:00 PM

I think the best solution might be to not have a ping icon at all.

I have an app that connects to a server (a computer) over bluetooth. Once the connection is made, there are chances that the connection drops

I’ve spoken to a developer friend and Bluetooth disconnect/connect are events your app can register for. That seems like a far more sane way to go. That way you won’t need a ping icon, you’ll just have to handle the disconnection state. Far nicer for the user.

(because the user can physically switch off Bluetooth) so I have a mechanism to "ping" and check if the server is up and running. I want users to manually be able to ping a server.

You can actually just check if the device supports Bluetooth and then check to see if it’s enabled, with isEnabled(). Google’s documents cover what’s needed.

Android Bluetooth documentation

Next, you need to ensure that Bluetooth is enabled. Call isEnabled() to check whether Bluetooth is currently enable. If this method returns false, then Bluetooth is disabled.

https://developer.android.com/guide/topics/connectivity/bluetooth.html

2015/05/16
3
5/16/2015 10:19:00 AM