Class Overview
Exception to be returned by a Task when a call to Google Play services has failed with a possible
resolution.
Summary
Public Methods |
PendingIntent
|
getResolution()
A pending intent to resolve the failure.
|
void
|
startResolutionForResult(Activity activity, int requestCode)
Resolves an error by starting any intents requiring user interaction.
|
[Expand]
Inherited Methods |
From class
com.google.android.gms.common.api.ApiException
|
From class
java.lang.Throwable
final
void
|
addSuppressed(Throwable arg0)
|
Throwable
|
fillInStackTrace()
|
Throwable
|
getCause()
|
String
|
getLocalizedMessage()
|
String
|
getMessage()
|
StackTraceElement[]
|
getStackTrace()
|
final
Throwable[]
|
getSuppressed()
|
Throwable
|
initCause(Throwable arg0)
|
void
|
printStackTrace()
|
void
|
printStackTrace(PrintWriter arg0)
|
void
|
printStackTrace(PrintStream arg0)
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
ResolvableApiException
(Status status)
Public Methods
public
PendingIntent
getResolution
()
public
void
startResolutionForResult
(Activity activity, int requestCode)
Resolves an error by starting any intents requiring user interaction. See SIGN_IN_REQUIRED
, and RESOLUTION_REQUIRED
.
Parameters |
activity |
Activity : An Activity context to use to resolve the issue. The activity's
onActivityResult method will be invoked after the user is done. If the resultCode is RESULT_OK , the application should try to connect again. |
requestCode |
int : The request code to pass to onActivityResult. |
Throws |
IntentSender.SendIntentException |
If the resolution intent has been canceled or is no longer able to
execute the request.
|