package com.qiyou.mb.android;

import com.qiyou.mb.android.upgrade.UpdateManager;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

public class Activity_qiyouBase extends FragmentActivity{

	public QiYouApplication app  ;
	
	public Activity_qiyouBase() {
		// TODO Auto-generated constructor stub
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) { 
		super.onCreate(savedInstanceState);
		app = (QiYouApplication) getApplication();
	}

	public void checkUpdate(boolean isSilence){
		UpdateManager manager = new UpdateManager(this);
	    if(isSilence)
	    	manager.checkUpdateSilence();
	    else
	    	manager.checkUpdate();
	}
}
