summaryrefslogblamecommitdiff
path: root/client/Piztor/src/com/macaroon/piztor/InitAct.java
blob: 8145935391d471f3a2759c92ae2bca7a5b0ec997 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                            
                         


                                        
 



                                                            
                                                     
                                                    
                                                       
         
 


                                  




                                   
                                             

                                                       
                                                        

                 



                                    
         



                                                             
                             


         
package com.macaroon.piztor;

import android.os.Bundle;
import android.view.Menu;

public class InitAct extends PiztorAct {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		id = "initAct";
		super.onCreate(savedInstanceState);
		AppMgr.init(getApplicationContext());
		AppMgr.transam.setTimeOutTime(5000);
		setContentView(R.layout.activity_init);
	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	protected void onResume() {
		super.onResume();
		if (Infomation.token == null)
			AppMgr.trigger(AppMgr.noToken);
		else {
			AppMgr.trigger(AppMgr.hasToken);
		}
	}
	
	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.init, menu);
		return false;
	}

}