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

ASF GitHub Bot commented on CB-8768:
------------------------------------

GitHub user thehuijb opened a pull request:

    https://github.com/apache/cordova-android/pull/170

    solves CB-8768 issue where onActivityResult gets called before onResume 
after MainActivity gets killed

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/thehuijb/cordova-android develop

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-android/pull/170.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #170
    
----
commit 2a981bdb196abe556e40c08d2c5f5511b2b6e732
Author: Serge Huijben <[email protected]>
Date:   2015-03-29T00:12:14Z

    solve issue where onActivityResult gets called before onResume
    
    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.

----


> 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