Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/CSActivity.java
/**
	 * Triggered when the activity becomes visible
	 * 
	 * @author Ian Copland
	 */
Triggered when the activity becomes visible

@author Ian Copland
Triggered when the activity becomes visible @author Ian Copland
@Override protected void onResume() 
    {
    	super.onResume();
        m_surface.onResume();
        CSPowerManager.RequestWakeLock(CSPowerManager.LOCK_TYPE.SCREEN_DIM_LOCK);
        CSApplication.get().resume();
        if(m_appConfig.isGooglePlayServicesRequired() == true)
        {
    		int gpsAvailableResult = GooglePlayServicesUtil.isGooglePlayServicesAvailable(CSApplication.get().getAppContext());
    		switch(gpsAvailableResult)
    		{
    		case ConnectionResult.SUCCESS:
    			break;
    		case ConnectionResult.SERVICE_MISSING:
    			break;
    		case ConnectionResult.SERVICE_DISABLED:
    		case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:
    			GooglePlayServicesUtil.getErrorDialog(gpsAvailableResult, this, k_googlePlayServicesErrorDialogRequestCode).show();
    			break;
    		}
        }
    }
@ Override protected void onResume ( ) { super . onResume ( ) ; m_surface . onResume ( ) ; CSPowerManager . RequestWakeLock ( CSPowerManager . LOCK_TYPE . SCREEN_DIM_LOCK ) ; CSApplication . get ( ) . resume ( ) ; if ( m_appConfig . isGooglePlayServicesRequired ( ) == true ) { int gpsAvailableResult = GooglePlayServicesUtil . isGooglePlayServicesAvailable ( CSApplication . get ( ) . getAppContext ( ) ) ; switch ( gpsAvailableResult ) { case ConnectionResult . SUCCESS : break ; case ConnectionResult . SERVICE_MISSING : break ; case ConnectionResult . SERVICE_DISABLED : case ConnectionResult . SERVICE_VERSION_UPDATE_REQUIRED : GooglePlayServicesUtil . getErrorDialog ( gpsAvailableResult , this , k_googlePlayServicesErrorDialogRequestCode ) . show ( ) ; break ; } } }
Triggered when the activity becomes visible
Triggered when the activity becomes visible
//We require Google Play Services so we need to check if they require installing //Kindle or unsupported device //Requires update