onNewIntent is not called

后端 未结 7 2130
暗喜
暗喜 2020-12-01 05:32

I have very strange situation.
Having one app, I decided to create another one from the code of first one.
I copied .xml files, copied .java files so that everythin

7条回答
  •  孤城傲影
    2020-12-01 05:43

    To enter to the onNewIntent method, you need in your AndroidManifest.xml file, put after set you main activity a launch mode, in this launch mode you have to put singleInstance e.g:

    
            
                
    
                
            
    
    

    Now you will able to enter to you onNewIntent method.

提交回复
热议问题