[ 
https://issues.apache.org/jira/browse/CB-8768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14389016#comment-14389016
 ] 

ASF subversion and git services commented on CB-8768:
-----------------------------------------------------

Commit 1aaba440b53b0622cff0bde3e143ba107c23c30a in cordova-android's branch 
refs/heads/master from [~thehuijb]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=1aaba44 ]

CB-8768 Fix onActivityResult called before plugins are loaded (after 
MainActivity gets killed)

situation: one of the plugins launches startActivityForResult and the Android 
OS decides to kill our MainActivity.
once the launched activity is fulfilled it comes back to our MainActivity, 
which has to be recreated first.
unfortunately Android calls onActivityResult before our Activity has fully 
loaded our installed plugins.

close #171


> if MainActivity is killed by Android OS after a plugin started a new activity 
> onActivityResult gets called before the plugin needed to handle the result is 
> loaded
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-8768
>                 URL: https://issues.apache.org/jira/browse/CB-8768
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Serge Huijben
>
> if one of the plugins launches startActivityForResult and the Android OS 
> decides to kill our MainActivity. what happens when the launched activity is 
> closed.
> the previous activity (our MainActivity is relaunched and onActivityResult is 
> called, our mainActivity however has not yet had the time to load all 
> onload=true plugins so therefore the savedInstanceState callBackService can 
> not be called.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to