android - onActivityResult() called prematurely -
I activist activity Activity (Priority parent family) as follows: Start the I:
< code> @ override protected void activity results (Int egzekododa, Inc. results, code, intent data) {super. Enaektiviti result (anurodhakoda, parinamakoda, data); If (requestcode == 1458) loadInfo (); } Void show settings Dialog () {startActivityForResult (new Intent (). SetClass (This, MyConfigure.class), 1458); }
MyConfigure class in a set (negative) call actually, MyConfigure class onakreta addition to any code, where it addPreferencesFromResource using preferences loads.
MyConfigure activity immediately after the play, now on to 1458 ActivityResult with the request code before time is called. 1.6 and 2.1 in accordance with the device have also been tested with 2.1. What priority is buried somewhere in the reference () is to set up a call? It may be premature to call or how to explain?
Launch Mode to singleTop
in the changing has been scheduled:
& lt; Activity Android: name = ". MainActivity" Android: launchMode = "singleTop" & gt;
Android a bug / feature (?), Which is immediately to the activity results (which still has not been set) to singalataska has been declared (this despite the fact that activity is on). If we singalataipa singalatopa from the original activity of the launch mode to change, then everything works as expected - the results after the end of the activity is reported. However, some clarification in this behavior (there is only one singalataska activity and several waiters to be), it is still logical for me is not banned
Comments
Post a Comment