android - "java.lang.IllegalStateException: Can not be called to deliver a result" -
i got exception: "java.lang.illegalstateexception: can not called deliver result", , didn't understand why. below reply why happened, maybe helps someone.
i had called finishaffinity() after having set result code. android complaining never able deliver result when calling finishaffinity().
solution: either don't set result before calling finishaffinity(), or set result 1 time again before calling finishaffinity() time activity.result_canceled result code:
setresult(activity.result_canceled); finishaffinity();
android illegalstateexception result activity-finish
No comments:
Post a Comment