Reputation: 16278
I'm working on a Service
that will track the user's location using LocationClient
from Google Play Services. Everything works fine, so now I want to consider alternate event flows like:
onConnectionFailed()
Service
shouldn't be stopped unless certain condition has been met, so is onDisconnect()
even going to be called (since LocationClient#disconnect()
is not called) Generally, when doing this inside an Activity
you would just present a Dialog
(from GooglePlayServicesUtil.getErrorDialog()
) or similar to let the user know, but since this is a Service
with no Activity
related to it, how am I supposed to handle this kind of errors
Upvotes: 1
Views: 46
Reputation: 6857
Create and show notification from your Service
. When user clicks on it show Activity
where errors/fails are described.
Upvotes: 1