Beispiel #1
0
 /**
  * Use this for initialization
  **/
 private void Start()
 {
     mWifi = new WifiManager();
     if (!mWifi.WaitForWifi())        //ensure that wifi is ON when app starts or quit
     {
         Application.Quit();
     }
     mFB                 = new FacebookConnector();
     mAndroidSID         = new AndroidSecureID();
     mTimeout            = new Timeout(mTimeoutValue, TimeoutGoToWelcome);
     Screen.sleepTimeout = SleepTimeout.NeverSleep;    //device screen should never turn off
     mCurrentState       = ScreensStates.REGISTRATION; //start application on registration screen
     mCamera.AutomaticRotation(mTimeout);              //use automatic rotation of welcome photo
     UpdateScreen();
 }