Question by 
               deadmarston · Feb 08, 2017 at 09:31 AM · 
                error reporting  
              
 
              OnApplicationFocus is called twice
My code: void OnApplicationFocus(bool hasFocus) {
         Debug.Log ("resume: " + Thread.CurrentThread.ManagedThreadId);
         Debug.Log ("hasFocus:" + hasFocus.ToString ());
         if (hasFocus) {
             Debug.Log ("sdk application resume");
             m_thread = new Thread(new ThreadStart(StartListen));
             m_thread.Start();
         }
     }
and i found that while opening a app, the log show that this function is called twice 02-08 17:06:19.017 14281 14300 I Unity : resume: 1 02-08 17:06:19.017 14281 14300 I Unity : hasFocus:True 02-08 17:06:19.017 14281 14300 I Unity : sdk application resume 02-08 17:06:19.022 14281 14300 I Unity : resume: 1 02-08 17:06:19.022 14281 14300 I Unity : hasFocus:True 02-08 17:06:19.023 14281 14300 I Unity : sdk application resume
can someone tell me why and how to deal with it
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                