I think it depends on your case.
95% cases where I see code which tries to use connectivity status on Android is just cause bad UX and will never be reliable enough and covers such pretty simple use cases as no network connection at all, as result it just hides an actual problem of handling of network errors
Agree with Chris, your service ping is the only reliable way to do this, but does it needed for your use case or not is another questions, in most cases it’s just unnecessary and proper error handling will work better