Activity生命周期方法的调用顺序工程与测试日志

下面为测试activity的方法的执行顺序   工程与测试资源地址

android工程

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.finalizetest"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="18" />
    <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.finalizetest.MainActivity"
            android:launchMode="singleTask"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.example.finalizetest.TabActivity"></activity>
        <activity android:name="com.example.finalizetest.Tab2Activity"></activity>
    </application>

</manifest>


BaseActivity

/*
 * 创建日期:2012-9-19
 */
package cn.com.fetion.activity;



public class BaseActivity extends Activity {
	
}


MainActivity

package com.example.finalizetest;

import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.os.Bundle;
import android.os.IInterface;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnFocusChangeListener;
import android.view.WindowManager.LayoutParams;
import android.widget.Toast;

public class MainActivity extends BaseActivity {
	protected static final String TAG = "MainActivity";
	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.tv).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				View iv1 = findViewById(R.id.iv1);
				View iv2=findViewById(R.id.iv2);
				String msg1="onClick() iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
				String msg2="onClick() iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
				i(msg1);
				i(msg2);
				Toast.makeText(getApplicationContext(), msg1+"\r\n"+msg2, 1).show();
				startActivity(new Intent(MainActivity.this,TabActivity.class));
			}
		});
        
    }
	@Override
	public void onWindowAttributesChanged(LayoutParams params) {
		View iv1 = findViewById(R.id.iv1);
		View iv2=findViewById(R.id.iv2);
		String msg1="iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		String msg2="iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		if(iv1!=null){
			msg1="iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
		}
		if(iv2!=null){
			msg2="iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
		}
		i("onWindowAttributesChanged() "+msg1);
		i("onWindowAttributesChanged() "+msg2);
		super.onWindowAttributesChanged(params);
	}
	
    
    @Override
    public void onAttachedToWindow() {
    	View iv1 = findViewById(R.id.iv1);
		View iv2=findViewById(R.id.iv2);
		String msg1="iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		String msg2="iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		if(iv1!=null){
			msg1="iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
		}
		if(iv2!=null){
			msg2="iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
		}
		i("onAttachedToWindow() "+msg1);
		i("onAttachedToWindow() "+msg2);
    	super.onAttachedToWindow();
    }
    
    @Override
    protected void onNewIntent(Intent intent) {
    	View iv1 = findViewById(R.id.iv1);
		View iv2=findViewById(R.id.iv2);
		String msg1="iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		String msg2="iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		if(iv1!=null){
			msg1="iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
		}
		if(iv2!=null){
			msg2="iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
		}
		i("onNewIntent() intent:"+toString(intent));
		i("onNewIntent() "+msg1);
		i("onNewIntent() "+msg2);
    	super.onNewIntent(intent);
    }
    
    @Override
    public void onWindowFocusChanged(boolean hasFocus) {
    	View iv1 = findViewById(R.id.iv1);
		View iv2=findViewById(R.id.iv2);
		String msg1="iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
		String msg2="iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
		i("onWindowFocusChanged() "+msg1);
		i("onWindowFocusChanged() "+msg2);
    	super.onWindowFocusChanged(hasFocus);
    }
    
    @Override
    public CharSequence onCreateDescription() {
    	View iv1 = findViewById(R.id.iv1);
		View iv2=findViewById(R.id.iv2);
		String msg1="iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
		String msg2="iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
		i("onCreateDescription() "+msg1);
		i("onCreateDescription() "+msg2);
    	return super.onCreateDescription();
    }
    
    
    @Override
    public void onContentChanged() {
    	View iv1 = findViewById(R.id.iv1);
		View iv2=findViewById(R.id.iv2);
		String msg1="iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
		String msg2="iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
		i("onContentChanged() "+msg1);
		i("onContentChanged() "+msg2);
    	super.onContentChanged();
    }
    
    @Override
    public View onCreateView(String name, Context context, AttributeSet attrs) {
    	Log.i(TAG, "在执行了"+i+"次后        onCreateView "+"  name:"+name+" attrs  className:"+attrs.getClass().getName()+"   attrs:"+attrs);
    	return super.onCreateView(name, context, attrs);
    }
    
    @Override
    public View onCreatePanelView(int featureId) {
    	i("onCreatePanelView()   featureId:"+featureId);
    	return super.onCreatePanelView(featureId);
    }
    
    @Override
    public boolean onCreateThumbnail(Bitmap outBitmap, Canvas canvas) {
    	View iv1 = findViewById(R.id.iv1);
		View iv2=findViewById(R.id.iv2);
		String msg1="iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		String msg2="iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		if(iv1!=null){
			msg1="iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
		}
		if(iv2!=null){
			msg2="iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
		}
		i("onCreateThumbnail() "+msg1);
		i("onCreateThumbnail() "+msg2);
    	return super.onCreateThumbnail(outBitmap, canvas);
    }
    
    @Override
    public void onDetachedFromWindow() {
    	View iv1 = findViewById(R.id.iv1);
		View iv2=findViewById(R.id.iv2);
		String msg1="iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		String msg2="iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0";
		if(iv1!=null){
			msg1="iv1' width:"+iv1.getWidth()+" height:"+iv1.getHeight()+"  measuredWidth:"+iv1.getMeasuredWidth()+"measuredHeight:"+iv1.getMeasuredHeight();
		}
		if(iv2!=null){
			msg2="iv2' width:"+iv2.getWidth()+" height:"+iv2.getHeight()+"  measuredWidth:"+iv2.getMeasuredWidth()+"measuredHeight:"+iv2.getMeasuredHeight();
		}
		i("onDetachedFromWindow() "+msg1);
		i("onDetachedFromWindow() "+msg2);
    	super.onDetachedFromWindow();
    }
}
TabActivity
package com.example.finalizetest;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class TabActivity extends BaseActivity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tab);
		TextView tv= (TextView) findViewById(R.id.tv);
		tv.setText("tab");
		tv.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
//				startActivity(new Intent(TabActivity.this,Tab2Activity.class));
				startActivity(new Intent(TabActivity.this,MainActivity.class));
			}
		});
	}
}

Tab2Activity

package com.example.finalizetest;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class Tab2Activity extends BaseActivity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tab);
		TextView tv= (TextView) findViewById(R.id.tv);
		tv.setText("tab2");
		tv.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(Tab2Activity.this,MainActivity.class));
			}
		});
	}
}

程序运行Log日志

			
MainActivity 为 singleTask模式 当栈里有该activity对象启动该activity时会干掉栈里该对象上面的所有activity并执行该activity的onNewIntent方法而不是onCreate方法 
其他Activity为普通模式    先启动MainActivity 在启动TabActivity在启动Tab2ACtivity在启动MainActivity在后退的Log日志

05-15 21:00:35.883: INFO/MainActivity(26620): 第1次执行 :  onCreate() savedInstanceState:null
05-15 21:00:35.885: INFO/MainActivity(26620): 第2次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:00:35.896: INFO/MainActivity(26620): 第3次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:00:35.897: INFO/MainActivity(26620): 第4次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:00:35.897: INFO/MainActivity(26620): 第5次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:00:35.898: INFO/MainActivity(26620): 第6次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:00:35.899: INFO/MainActivity(26620): 第7次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:00:35.899: INFO/MainActivity(26620): 在执行了7次后        onCreateView   name:LinearLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42778940
05-15 21:00:35.911: INFO/MainActivity(26620): 在执行了7次后        onCreateView   name:ViewStub attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42778940
05-15 21:00:35.911: INFO/MainActivity(26620): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42778940
05-15 21:00:35.913: INFO/MainActivity(26620): 在执行了7次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42778940
05-15 21:00:35.917: INFO/MainActivity(26620): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42778940
05-15 21:00:35.925: INFO/MainActivity(26620): 第8次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:00:35.926: INFO/MainActivity(26620): 第9次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:00:35.927: INFO/MainActivity(26620): 在执行了9次后        onCreateView   name:RelativeLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427adb00
05-15 21:00:35.929: INFO/MainActivity(26620): 在执行了9次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427adb00
05-15 21:00:35.932: INFO/MainActivity(26620): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427adb00
05-15 21:00:35.933: INFO/MainActivity(26620): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427adb00
05-15 21:00:35.941: INFO/MainActivity(26620): 第10次执行 :  onContentChanged() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 21:00:35.942: INFO/MainActivity(26620): 第11次执行 :  onContentChanged() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 21:00:35.942: INFO/MainActivity(26620): 第12次执行 :  onStart()
05-15 21:00:35.942: INFO/MainActivity(26620): 第13次执行 :  onResume()
05-15 21:00:35.962: INFO/MainActivity(26620): 第14次执行 :  onAttachedToWindow() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 21:00:35.962: INFO/MainActivity(26620): 第15次执行 :  onAttachedToWindow() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 21:00:36.192: INFO/MainActivity(26620): 第16次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:00:36.192: INFO/MainActivity(26620): 第17次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:00:36.192: VERBOSE/InputMethodManager(26620): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 21:00:36.192: VERBOSE/InputMethodManager(26620): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427771f0
05-15 21:00:36.193: VERBOSE/InputMethodManager(26620): Starting input: tba=android.view.inputmethod.EditorInfo@427d9880 ic=null
05-15 21:00:36.193: VERBOSE/InputMethodManager(26620): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427771f0 ic=null tba=android.view.inputmethod.EditorInfo@427d9880 controlFlags=#104
05-15 21:00:36.202: VERBOSE/InputMethodManager(26620): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@4276fd60 com.yulong.android.coolpadime/.CoolpadIME #519}
05-15 21:00:41.588: VERBOSE/Provider/Setting(26620): from settings cache , name = sound_effects_enabled value = 0
05-15 21:00:41.589: INFO/MainActivity(26620): 第18次执行 :  onClick() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:00:41.590: INFO/MainActivity(26620): 第19次执行 :  onClick() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:00:41.666: INFO/MainActivity(26620): 第20次执行 :  onPause()
05-15 21:00:41.729: INFO/TabActivity(26620): 第1次执行 :  onCreate() savedInstanceState:null
05-15 21:00:41.742: INFO/TabActivity(26620): 第2次执行 :  onStart()
05-15 21:00:41.742: INFO/TabActivity(26620): 第3次执行 :  onResume()
05-15 21:00:41.749: INFO/MainActivity(26620): 第21次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:00:41.749: INFO/MainActivity(26620): 第22次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:00:41.796: VERBOSE/InputMethodManager(26620): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 21:00:41.798: VERBOSE/InputMethodManager(26620): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427a0a10
05-15 21:00:41.798: VERBOSE/InputMethodManager(26620): Starting input: tba=android.view.inputmethod.EditorInfo@427bdd28 ic=null
05-15 21:00:41.798: VERBOSE/InputMethodManager(26620): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427a0a10 ic=null tba=android.view.inputmethod.EditorInfo@427bdd28 controlFlags=#104
05-15 21:00:41.801: VERBOSE/InputMethodManager(26620): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@427a9fc8 com.yulong.android.coolpadime/.CoolpadIME #520}
05-15 21:00:41.850: DEBUG/OpenGLRenderer(26620): Flushing caches (mode 0)
05-15 21:00:42.173: INFO/MainActivity(26620): 第23次执行 :  onCreateDescription() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:00:42.173: INFO/MainActivity(26620): 第24次执行 :  onCreateDescription() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:00:42.174: INFO/MainActivity(26620): 第25次执行 :  onSaveInstanceState()  outState:Bundle[{}]
05-15 21:00:42.174: INFO/MainActivity(26620): 第26次执行 :  onStop()
05-15 21:00:47.481: VERBOSE/Provider/Setting(26620): from settings cache , name = sound_effects_enabled value = 0
05-15 21:00:47.533: INFO/TabActivity(26620): 第4次执行 :  onPause()
05-15 21:00:47.584: INFO/Tab2Activity(26620): 第1次执行 :  onCreate() savedInstanceState:null
05-15 21:00:47.588: INFO/Tab2Activity(26620): 第2次执行 :  onStart()
05-15 21:00:47.589: INFO/Tab2Activity(26620): 第3次执行 :  onResume()
05-15 21:00:47.626: VERBOSE/InputMethodManager(26620): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 21:00:47.627: VERBOSE/InputMethodManager(26620): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@42791610
05-15 21:00:47.627: VERBOSE/InputMethodManager(26620): Starting input: tba=android.view.inputmethod.EditorInfo@4277a728 ic=null
05-15 21:00:47.627: VERBOSE/InputMethodManager(26620): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@42791610 ic=null tba=android.view.inputmethod.EditorInfo@4277a728 controlFlags=#104
05-15 21:00:47.629: VERBOSE/InputMethodManager(26620): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@427a62e8 com.yulong.android.coolpadime/.CoolpadIME #521}
05-15 21:00:47.676: DEBUG/OpenGLRenderer(26620): Flushing caches (mode 0)
05-15 21:00:47.979: INFO/TabActivity(26620): 第5次执行 :  onSaveInstanceState()  outState:Bundle[{}]
05-15 21:00:47.980: INFO/TabActivity(26620): 第6次执行 :  onStop()
05-15 21:00:51.776: VERBOSE/Provider/Setting(26620): from settings cache , name = sound_effects_enabled value = 0
05-15 21:00:51.826: INFO/TabActivity(26620): 第7次执行 :  onDestroy()
05-15 21:00:51.827: DEBUG/OpenGLRenderer(26620): Flushing caches (mode 0)
05-15 21:00:51.836: INFO/Tab2Activity(26620): 第4次执行 :  onPause()
05-15 21:00:51.859: INFO/MainActivity(26620): 第27次执行 :  onNewIntent() intent:Intent {  cmp = com.example.finalizetest/.MainActivity, }
05-15 21:00:51.859: INFO/MainActivity(26620): 第28次执行 :  onNewIntent() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:00:51.859: INFO/MainActivity(26620): 第29次执行 :  onNewIntent() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:00:51.878: INFO/MainActivity(26620): 第30次执行 :  onRestart()
05-15 21:00:51.878: INFO/MainActivity(26620): 第31次执行 :  onStart()
05-15 21:00:51.878: INFO/MainActivity(26620): 第32次执行 :  onResume()
05-15 21:00:51.895: INFO/MainActivity(26620): 第33次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:00:51.895: INFO/MainActivity(26620): 第34次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:00:51.896: VERBOSE/InputMethodManager(26620): onWindowFocus: null softInputMode=32 first=true flags=#1810100
05-15 21:00:51.896: VERBOSE/InputMethodManager(26620): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427771f0
05-15 21:00:51.896: VERBOSE/InputMethodManager(26620): Starting input: tba=android.view.inputmethod.EditorInfo@427f8780 ic=null
05-15 21:00:51.896: VERBOSE/InputMethodManager(26620): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427771f0 ic=null tba=android.view.inputmethod.EditorInfo@427f8780 controlFlags=#104
05-15 21:00:51.898: VERBOSE/InputMethodManager(26620): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@427ac7f0 com.yulong.android.coolpadime/.CoolpadIME #522}
05-15 21:00:51.924: DEBUG/OpenGLRenderer(26620): Flushing caches (mode 0)
05-15 21:00:52.250: INFO/Tab2Activity(26620): 第5次执行 :  onStop()
05-15 21:00:52.250: INFO/Tab2Activity(26620): 第6次执行 :  onDestroy()
05-15 21:00:52.251: DEBUG/OpenGLRenderer(26620): Flushing caches (mode 0)
05-15 21:00:54.107: VERBOSE/ViewRootImpl(26620): Sending key event to IME: seq=199, event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1044020772, downTime=1044020772, deviceId=2, source=0x101 }, this = ViewRoot{4275bb50 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 13}
05-15 21:00:54.110: DEBUG/ViewRootImpl(26620): IME finishedEvent: seq = 199,handled = false,viewAncestor = ViewRoot{4275bb50 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 13}
05-15 21:00:54.183: VERBOSE/ViewRootImpl(26620): Sending key event to IME: seq=200, event=KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1044020856, downTime=1044020772, deviceId=2, source=0x101 }, this = ViewRoot{4275bb50 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 13}
05-15 21:00:54.186: DEBUG/ViewRootImpl(26620): IME finishedEvent: seq = 200,handled = false,viewAncestor = ViewRoot{4275bb50 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 13}
05-15 21:00:54.188: INFO/MainActivity(26620): 第35次执行 :  finish()
05-15 21:00:54.231: INFO/MainActivity(26620): 第36次执行 :  onPause()
05-15 21:00:54.259: INFO/MainActivity(26620): 第37次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:00:54.259: INFO/MainActivity(26620): 第38次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:00:54.342: DEBUG/OpenGLRenderer(26620): Flushing caches (mode 0)
05-15 21:00:54.766: DEBUG/OpenGLRenderer(26620): Flushing caches (mode 1)
05-15 21:00:54.773: INFO/MainActivity(26620): 第39次执行 :  onStop()
05-15 21:00:54.774: INFO/MainActivity(26620): 第40次执行 :  onDestroy()
05-15 21:00:54.775: INFO/MainActivity(26620): 第41次执行 :  onDetachedFromWindow() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:00:54.775: INFO/MainActivity(26620): 第42次执行 :  onDetachedFromWindow() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:00:54.775: DEBUG/OpenGLRenderer(26620): Flushing caches (mode 0)


		
		进入MainActivity  点击返回

05-15 20:35:40.048: INFO/MainActivity(22895): 第1次执行 :  onCreate() savedInstanceState:null
05-15 20:35:40.052: INFO/MainActivity(22895): 第2次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:35:40.055: INFO/MainActivity(22895): 第3次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:35:40.055: INFO/MainActivity(22895): 第4次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:35:40.055: INFO/MainActivity(22895): 第5次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:35:40.055: INFO/MainActivity(22895): 第6次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:35:40.057: INFO/MainActivity(22895): 第7次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:35:40.058: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:LinearLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b2e8
05-15 20:35:40.059: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:ViewStub attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b2e8
05-15 20:35:40.060: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b2e8
05-15 20:35:40.070: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b2e8
05-15 20:35:40.074: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b2e8
05-15 20:35:40.077: INFO/MainActivity(22895): 第8次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:35:40.078: INFO/MainActivity(22895): 第9次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:35:40.078: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:RelativeLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42771fc0
05-15 20:35:40.079: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42771fc0
05-15 20:35:40.080: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42771fc0
05-15 20:35:40.086: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42771fc0
05-15 20:35:40.086: INFO/MainActivity(22895): 第10次执行 :  onContentChanged() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:35:40.087: INFO/MainActivity(22895): 第11次执行 :  onContentChanged() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:35:40.087: INFO/MainActivity(22895): 第12次执行 :  onStart()
05-15 20:35:40.087: INFO/MainActivity(22895): 第13次执行 :  onResume()
05-15 20:35:40.103: INFO/MainActivity(22895): 第14次执行 :  onAttachedToWindow() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:35:40.106: INFO/MainActivity(22895): 第15次执行 :  onAttachedToWindow() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:35:40.369: INFO/MainActivity(22895): 第16次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:35:40.369: INFO/MainActivity(22895): 第17次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:35:40.369: VERBOSE/InputMethodManager(22895): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 20:35:40.369: VERBOSE/InputMethodManager(22895): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427a9ae8
05-15 20:35:40.370: VERBOSE/InputMethodManager(22895): Starting input: tba=android.view.inputmethod.EditorInfo@4279df90 ic=null
05-15 20:35:40.370: VERBOSE/InputMethodManager(22895): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427a9ae8 ic=null tba=android.view.inputmethod.EditorInfo@4279df90 controlFlags=#104
05-15 20:35:40.373: VERBOSE/InputMethodManager(22895): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@427e5808 com.yulong.android.coolpadime/.CoolpadIME #441}
05-15 20:35:44.110: VERBOSE/ViewRootImpl(22895): Sending key event to IME: seq=58, event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1042510775, downTime=1042510775, deviceId=2, source=0x101 }, this = ViewRoot{427a5558 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 9}
05-15 20:35:44.112: DEBUG/ViewRootImpl(22895): IME finishedEvent: seq = 58,handled = false,viewAncestor = ViewRoot{427a5558 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 9}
05-15 20:35:44.176: VERBOSE/ViewRootImpl(22895): Sending key event to IME: seq=59, event=KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1042510849, downTime=1042510775, deviceId=2, source=0x101 }, this = ViewRoot{427a5558 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 9}
05-15 20:35:44.178: DEBUG/ViewRootImpl(22895): IME finishedEvent: seq = 59,handled = false,viewAncestor = ViewRoot{427a5558 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 9}
05-15 20:35:44.179: INFO/MainActivity(22895): 第18次执行 :  finish()
05-15 20:35:44.225: INFO/MainActivity(22895): 第19次执行 :  onPause()
05-15 20:35:44.253: INFO/MainActivity(22895): 第20次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:35:44.254: INFO/MainActivity(22895): 第21次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:35:44.317: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 0)
05-15 20:35:45.061: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 1)
05-15 20:35:45.068: INFO/MainActivity(22895): 第22次执行 :  onStop()
05-15 20:35:45.068: INFO/MainActivity(22895): 第23次执行 :  onDestroy()
05-15 20:35:45.070: INFO/MainActivity(22895): 第24次执行 :  onDetachedFromWindow() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:35:45.070: INFO/MainActivity(22895): 第25次执行 :  onDetachedFromWindow() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:35:45.074: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 0)

				
				进入MainActivity回到桌面回到MainActivity 返回
				
05-15 20:37:32.363: INFO/MainActivity(22895): 第1次执行 :  onCreate() savedInstanceState:null
05-15 20:37:32.363: INFO/MainActivity(22895): 第2次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:37:32.363: INFO/MainActivity(22895): 第3次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:37:32.363: INFO/MainActivity(22895): 第4次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:37:32.363: INFO/MainActivity(22895): 第5次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:37:32.363: INFO/MainActivity(22895): 第6次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:37:32.363: INFO/MainActivity(22895): 第7次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:37:32.364: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:LinearLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42792958
05-15 20:37:32.364: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:ViewStub attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42792958
05-15 20:37:32.364: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42792958
05-15 20:37:32.365: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42792958
05-15 20:37:32.366: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@42792958
05-15 20:37:32.367: INFO/MainActivity(22895): 第8次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:37:32.367: INFO/MainActivity(22895): 第9次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:37:32.367: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:RelativeLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b138
05-15 20:37:32.368: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b138
05-15 20:37:32.369: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b138
05-15 20:37:32.370: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@4275b138
05-15 20:37:32.371: INFO/MainActivity(22895): 第10次执行 :  onContentChanged() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:37:32.371: INFO/MainActivity(22895): 第11次执行 :  onContentChanged() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:37:32.371: INFO/MainActivity(22895): 第12次执行 :  onStart()
05-15 20:37:32.371: INFO/MainActivity(22895): 第13次执行 :  onResume()
05-15 20:37:32.397: INFO/MainActivity(22895): 第14次执行 :  onAttachedToWindow() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:37:32.397: INFO/MainActivity(22895): 第15次执行 :  onAttachedToWindow() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:37:32.617: INFO/MainActivity(22895): 第16次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:37:32.617: INFO/MainActivity(22895): 第17次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:37:32.617: VERBOSE/InputMethodManager(22895): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 20:37:32.617: VERBOSE/InputMethodManager(22895): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@42791a38
05-15 20:37:32.618: VERBOSE/InputMethodManager(22895): Starting input: tba=android.view.inputmethod.EditorInfo@427d8478 ic=null
05-15 20:37:32.618: VERBOSE/InputMethodManager(22895): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@42791a38 ic=null tba=android.view.inputmethod.EditorInfo@427d8478 controlFlags=#104
05-15 20:37:32.622: VERBOSE/InputMethodManager(22895): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@427e89a8 com.yulong.android.coolpadime/.CoolpadIME #445}
05-15 20:37:37.161: INFO/MainActivity(22895): 第18次执行 :  onPause()
05-15 20:37:37.180: INFO/MainActivity(22895): 第19次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:37:37.183: INFO/MainActivity(22895): 第20次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:37:37.271: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 0)
05-15 20:37:37.294: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 1)
05-15 20:37:38.024: INFO/MainActivity(22895): 第21次执行 :  onCreateDescription() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:37:38.024: INFO/MainActivity(22895): 第22次执行 :  onCreateDescription() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:37:38.024: INFO/MainActivity(22895): 第23次执行 :  onSaveInstanceState()  outState:Bundle[{}]
05-15 20:37:38.024: INFO/MainActivity(22895): 第24次执行 :  onStop()
05-15 20:37:43.308: INFO/MainActivity(22895): 第25次执行 :  onRestart()
05-15 20:37:43.309: INFO/MainActivity(22895): 第26次执行 :  onStart()
05-15 20:37:43.310: INFO/MainActivity(22895): 第27次执行 :  onResume()
05-15 20:37:43.512: INFO/MainActivity(22895): 第28次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:37:43.512: INFO/MainActivity(22895): 第29次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:37:43.512: VERBOSE/InputMethodManager(22895): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 20:37:43.512: VERBOSE/InputMethodManager(22895): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@42791a38
05-15 20:37:43.512: VERBOSE/InputMethodManager(22895): Starting input: tba=android.view.inputmethod.EditorInfo@42803ae0 ic=null
05-15 20:37:43.512: VERBOSE/InputMethodManager(22895): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@42791a38 ic=null tba=android.view.inputmethod.EditorInfo@42803ae0 controlFlags=#104
05-15 20:37:43.514: VERBOSE/InputMethodManager(22895): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@42805000 com.yulong.android.coolpadime/.CoolpadIME #447}
05-15 20:38:05.711: VERBOSE/ViewRootImpl(22895): Sending key event to IME: seq=60, event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1042652372, downTime=1042652372, deviceId=2, source=0x101 }, this = ViewRoot{427ee998 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 10}
05-15 20:38:05.713: DEBUG/ViewRootImpl(22895): IME finishedEvent: seq = 60,handled = false,viewAncestor = ViewRoot{427ee998 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 10}
05-15 20:38:05.715: VERBOSE/ViewRootImpl(22895): Sending key event to IME: seq=61, event=KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1042652382, downTime=1042652372, deviceId=2, source=0x101 }, this = ViewRoot{427ee998 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 10}
05-15 20:38:05.716: DEBUG/ViewRootImpl(22895): IME finishedEvent: seq = 61,handled = false,viewAncestor = ViewRoot{427ee998 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 10}
05-15 20:38:05.716: INFO/MainActivity(22895): 第30次执行 :  finish()
05-15 20:38:05.755: INFO/MainActivity(22895): 第31次执行 :  onPause()
05-15 20:38:05.781: INFO/MainActivity(22895): 第32次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:38:05.783: INFO/MainActivity(22895): 第33次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:38:05.943: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 0)
05-15 20:38:06.390: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 1)
05-15 20:38:06.398: INFO/MainActivity(22895): 第34次执行 :  onStop()
05-15 20:38:06.398: INFO/MainActivity(22895): 第35次执行 :  onDestroy()
05-15 20:38:06.400: INFO/MainActivity(22895): 第36次执行 :  onDetachedFromWindow() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:38:06.400: INFO/MainActivity(22895): 第37次执行 :  onDetachedFromWindow() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:38:06.401: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 0)

			进入MainActivity锁屏 解锁 返回

05-15 20:40:30.883: INFO/MainActivity(22895): 第1次执行 :  onCreate() savedInstanceState:null
05-15 20:40:30.888: INFO/MainActivity(22895): 第2次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:40:30.888: INFO/MainActivity(22895): 第3次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:40:30.888: INFO/MainActivity(22895): 第4次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:40:30.888: INFO/MainActivity(22895): 第5次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:40:30.889: INFO/MainActivity(22895): 第6次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:40:30.889: INFO/MainActivity(22895): 第7次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:40:30.889: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:LinearLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427725d0
05-15 20:40:30.890: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:ViewStub attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427725d0
05-15 20:40:30.890: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427725d0
05-15 20:40:30.897: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427725d0
05-15 20:40:30.898: INFO/MainActivity(22895): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427725d0
05-15 20:40:30.899: INFO/MainActivity(22895): 第8次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:40:30.899: INFO/MainActivity(22895): 第9次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 20:40:30.900: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:RelativeLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427a1fd0
05-15 20:40:30.901: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427a1fd0
05-15 20:40:30.902: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427a1fd0
05-15 20:40:30.903: INFO/MainActivity(22895): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427a1fd0
05-15 20:40:30.903: INFO/MainActivity(22895): 第10次执行 :  onContentChanged() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:40:30.904: INFO/MainActivity(22895): 第11次执行 :  onContentChanged() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:40:30.904: INFO/MainActivity(22895): 第12次执行 :  onStart()
05-15 20:40:30.906: INFO/MainActivity(22895): 第13次执行 :  onResume()
05-15 20:40:30.916: INFO/MainActivity(22895): 第14次执行 :  onAttachedToWindow() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:40:30.916: INFO/MainActivity(22895): 第15次执行 :  onAttachedToWindow() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 20:40:31.068: INFO/MainActivity(22895): 第16次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:40:31.068: INFO/MainActivity(22895): 第17次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:40:31.069: VERBOSE/InputMethodManager(22895): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 20:40:31.069: VERBOSE/InputMethodManager(22895): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427af348
05-15 20:40:31.090: VERBOSE/InputMethodManager(22895): Starting input: tba=android.view.inputmethod.EditorInfo@427ee920 ic=null
05-15 20:40:31.090: VERBOSE/InputMethodManager(22895): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427af348 ic=null tba=android.view.inputmethod.EditorInfo@427ee920 controlFlags=#104
05-15 20:40:31.093: VERBOSE/InputMethodManager(22895): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@42794bd0 com.yulong.android.coolpadime/.CoolpadIME #455}
05-15 20:40:36.772: INFO/MainActivity(22895): 第18次执行 :  onPause()
05-15 20:40:36.788: INFO/MainActivity(22895): 第19次执行 :  onCreateDescription() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:40:36.789: INFO/MainActivity(22895): 第20次执行 :  onCreateDescription() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:40:36.789: INFO/MainActivity(22895): 第21次执行 :  onSaveInstanceState()  outState:Bundle[{}]
05-15 20:40:36.790: INFO/MainActivity(22895): 第22次执行 :  onStop()
05-15 20:40:36.830: VERBOSE/InputMethodManager(22895): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427af348
05-15 20:40:36.830: VERBOSE/InputMethodManager(22895): Starting input: tba=android.view.inputmethod.EditorInfo@427c14d8 ic=null
05-15 20:40:36.831: VERBOSE/InputMethodManager(22895): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427af348 ic=null tba=android.view.inputmethod.EditorInfo@427c14d8 controlFlags=#100
05-15 20:40:36.833: VERBOSE/InputMethodManager(22895): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@427c7b18 com.yulong.android.coolpadime/.CoolpadIME #456}
05-15 20:40:36.833: WARN/IInputConnectionWrapper(22895): performPrivateCommand on inactive InputConnection
05-15 20:40:37.396: INFO/MainActivity(22895): 第23次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:40:37.396: INFO/MainActivity(22895): 第24次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:40:42.903: INFO/SurfaceTextureClient(22895): [STC::queueBuffer] (this:0x5240c880) fps:0.08, dur:11847.32, max:11847.32, min:11847.32
05-15 20:40:42.906: INFO/SurfaceTextureClient(22895): [STC::queueBuffer] this:0x5240c880, api:1, last queue time elapsed:11847.32
05-15 20:40:46.428: INFO/MainActivity(22895): 第25次执行 :  onRestart()
05-15 20:40:46.429: INFO/MainActivity(22895): 第26次执行 :  onStart()
05-15 20:40:46.473: INFO/MainActivity(22895): 第27次执行 :  onResume()
05-15 20:40:46.518: INFO/MainActivity(22895): 第28次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 20:40:46.518: INFO/MainActivity(22895): 第29次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 20:40:46.519: VERBOSE/InputMethodManager(22895): onWindowFocus: null softInputMode=288 first=false flags=#1810100
05-15 20:40:46.520: VERBOSE/InputMethodManager(22895): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427af348
05-15 20:40:46.520: VERBOSE/InputMethodManager(22895): Starting input: tba=android.view.inputmethod.EditorInfo@427a7358 ic=null
05-15 20:40:46.521: VERBOSE/InputMethodManager(22895): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427af348 ic=null tba=android.view.inputmethod.EditorInfo@427a7358 controlFlags=#100
05-15 20:40:46.536: VERBOSE/InputMethodManager(22895): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@427e9b88 com.yulong.android.coolpadime/.CoolpadIME #457}
05-15 20:40:51.536: VERBOSE/ViewRootImpl(22895): Sending key event to IME: seq=96, event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1042818197, downTime=1042818197, deviceId=2, source=0x101 }, this = ViewRoot{4276e798 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 12}
05-15 20:40:51.537: DEBUG/ViewRootImpl(22895): IME finishedEvent: seq = 96,handled = false,viewAncestor = ViewRoot{4276e798 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 12}
05-15 20:40:51.609: VERBOSE/ViewRootImpl(22895): Sending key event to IME: seq=97, event=KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1042818282, downTime=1042818197, deviceId=2, source=0x101 }, this = ViewRoot{4276e798 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 12}
05-15 20:40:51.611: DEBUG/ViewRootImpl(22895): IME finishedEvent: seq = 97,handled = false,viewAncestor = ViewRoot{4276e798 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 12}
05-15 20:40:51.613: INFO/MainActivity(22895): 第30次执行 :  finish()
05-15 20:40:51.658: INFO/MainActivity(22895): 第31次执行 :  onPause()<pre name="code" class="plain">			
MainActivity 为 singleTask模式   其他Activity为普通模式    先启动MainActivity 在启动TabActivity在启动MainActivity在后退的Log日志

05-15 21:07:43.968: DEBUG/dalvikvm(27612): Zygote::ForkAndSpecialize : 0
05-15 21:07:43.968: DEBUG/dalvikvm(27612): zygote get new systemTid : 27612
05-15 21:07:43.968: DEBUG/dalvikvm(27612): Late-enabling CheckJNI
05-15 21:07:43.973: DEBUG/dalvikvm(27612): threadid=2: interp stack at 0x4f3a2000
05-15 21:07:43.975: DEBUG/dalvikvm(27612): threadid=3: interp stack at 0x4f4aa000
05-15 21:07:43.975: DEBUG/dalvikvm(27612): Elevating priority from 0 to -8
05-15 21:07:43.977: DEBUG/jdwp(27612): prepping for JDWP over ADB
05-15 21:07:43.977: DEBUG/jdwp(27612): ADB transport startup
05-15 21:07:43.984: DEBUG/dalvikvm(27612): threadid=4: interp stack at 0x4f5b2000
05-15 21:07:43.985: DEBUG/jdwp(27612): JDWP: thread running
05-15 21:07:43.995: DEBUG/jdwp(27612): acceptConnection
05-15 21:07:43.995: DEBUG/jdwp(27612): trying to receive file descriptor from ADB
05-15 21:07:44.003: DEBUG/jdwp(27612): received file descriptor 44 from ADB
05-15 21:07:44.005: DEBUG/dalvikvm(27612): threadid=5: interp stack at 0x5159c000
05-15 21:07:44.005: DEBUG/dalvikvm(27612): zygote get thread init done
05-15 21:07:44.006: DEBUG/dalvikvm(27612): create interp thread : stack size=32KB
05-15 21:07:44.006: DEBUG/dalvikvm(27612): create new thread
05-15 21:07:44.006: DEBUG/dalvikvm(27612): new thread created
05-15 21:07:44.006: DEBUG/dalvikvm(27612): update thread list
05-15 21:07:44.007: DEBUG/dalvikvm(27612): threadid=6: interp stack at 0x515a4000
05-15 21:07:44.007: DEBUG/dalvikvm(27612): threadid=6: created from interp
05-15 21:07:44.007: DEBUG/dalvikvm(27612): start new thread
05-15 21:07:44.007: DEBUG/dalvikvm(27612): threadid=6: notify debugger
05-15 21:07:44.007: DEBUG/dalvikvm(27612): threadid=6 (ReferenceQueueDaemon): calling run()
05-15 21:07:44.007: DEBUG/jdwp(27612): processIncoming
05-15 21:07:44.007: DEBUG/dalvikvm(27612): create interp thread : stack size=32KB
05-15 21:07:44.008: DEBUG/dalvikvm(27612): create new thread
05-15 21:07:44.008: DEBUG/dalvikvm(27612): new thread created
05-15 21:07:44.008: DEBUG/dalvikvm(27612): update thread list
05-15 21:07:44.008: DEBUG/dalvikvm(27612): threadid=7: interp stack at 0x516ac000
05-15 21:07:44.008: DEBUG/dalvikvm(27612): threadid=7: created from interp
05-15 21:07:44.009: DEBUG/jdwp(27612): processIncoming
05-15 21:07:44.009: DEBUG/jdwp(27612): handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x4000024C, flags=0x0, dataLen=0x8
05-15 21:07:44.009: DEBUG/dalvikvm(27612): start new thread
05-15 21:07:44.009: DEBUG/dalvikvm(27612): threadid=7: notify debugger
05-15 21:07:44.009: DEBUG/dalvikvm(27612): threadid=7 (FinalizerDaemon): calling run()
05-15 21:07:44.009: DEBUG/dalvikvm(27612): create interp thread : stack size=32KB
05-15 21:07:44.009: DEBUG/dalvikvm(27612): create new thread
05-15 21:07:44.009: DEBUG/dalvikvm(27612): new thread created
05-15 21:07:44.009: DEBUG/dalvikvm(27612): update thread list
05-15 21:07:44.012: DEBUG/jdwp(27612): processIncoming
05-15 21:07:44.012: DEBUG/jdwp(27612): handlePacket : cmd=0x1, cmdSet=0xC7, len=0x17, id=0x4000024D, flags=0x0, dataLen=0xC
05-15 21:07:44.012: DEBUG/dalvikvm(27612): threadid=8: interp stack at 0x517b4000
05-15 21:07:44.012: DEBUG/dalvikvm(27612): threadid=8: created from interp
05-15 21:07:44.013: DEBUG/dalvikvm(27612): start new thread
05-15 21:07:44.013: DEBUG/Zygote(27612): fork pid : 0
05-15 21:07:44.013: DEBUG/dalvikvm(27612): threadid=8: notify debugger
05-15 21:07:44.013: DEBUG/dalvikvm(27612): threadid=8 (FinalizerWatchdogDaemon): calling run()
05-15 21:07:44.016: DEBUG/jdwp(27612): processIncoming
05-15 21:07:44.019: DEBUG/jdwp(27612): handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x4000024E, flags=0x0, dataLen=0x8
05-15 21:07:44.020: DEBUG/jdwp(27612): processIncoming
05-15 21:07:44.020: DEBUG/jdwp(27612): handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x4000024F, flags=0x0, dataLen=0x8
05-15 21:07:44.048: DEBUG/dalvikvm(27612): threadid=9: interp stack at 0x51bba000
05-15 21:07:44.049: DEBUG/dalvikvm(27612): threadid=10: interp stack at 0x51cc2000
05-15 21:07:44.061: DEBUG/jdwp(27612): sendBufferedRequest : len=0x39
05-15 21:07:44.179: ERROR/Trace(27612): error opening trace file: No such file or directory (2)
05-15 21:07:44.218: DEBUG/jdwp(27612): sendBufferedRequest : len=0x47
05-15 21:07:44.220: WARN/asset(27612): >>>>>>>>>>>>>>AssetManager begin to add defaultAssets
05-15 21:07:44.220: WARN/asset(27612): AssetManager-->kSystemAssets isok1 is sucess
05-15 21:07:44.220: WARN/asset(27612): AssetManager-->kCommonAssets isok2is sucess
05-15 21:07:44.220: WARN/asset(27612): AssetManager-->kMediatekAssets isok3 is sucess
05-15 21:07:44.221: WARN/asset(27612): >>>>>>>>>>>>>>AssetManager end to add defaultAssets
05-15 21:07:44.225: DEBUG/dalvikvm(27612): open_cached_dex_file : /data/app/com.example.finalizetest-2.apk /data/dalvik-cache/data@[email protected]@classes.dex
05-15 21:07:44.254: INFO/MainActivity(27612): 第1次执行 :  onCreate() savedInstanceState:null
05-15 21:07:44.264: INFO/MainActivity(27612): 第2次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:07:44.264: INFO/MainActivity(27612): 第3次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:07:44.264: INFO/MainActivity(27612): 第4次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:07:44.264: INFO/MainActivity(27612): 第5次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:07:44.264: INFO/MainActivity(27612): 第6次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:07:44.264: INFO/MainActivity(27612): 第7次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:07:44.266: INFO/MainActivity(27612): 在执行了7次后        onCreateView   name:LinearLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b14a8
05-15 21:07:44.268: INFO/MainActivity(27612): 在执行了7次后        onCreateView   name:ViewStub attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b14a8
05-15 21:07:44.269: INFO/MainActivity(27612): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b14a8
05-15 21:07:44.271: DEBUG/skia(27612): Flag is not 10
05-15 21:07:44.273: INFO/MainActivity(27612): 在执行了7次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b14a8
05-15 21:07:44.275: INFO/MainActivity(27612): 在执行了7次后        onCreateView   name:FrameLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b14a8
05-15 21:07:44.276: INFO/MainActivity(27612): 第8次执行 :  onWindowAttributesChanged() iv1' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:07:44.277: INFO/MainActivity(27612): 第9次执行 :  onWindowAttributesChanged() iv2' width:0 height:0 measuredWidth: 0 measuredHeight: 0
05-15 21:07:44.277: INFO/MainActivity(27612): 在执行了9次后        onCreateView   name:RelativeLayout attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b9408
05-15 21:07:44.278: INFO/MainActivity(27612): 在执行了9次后        onCreateView   name:TextView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b9408
05-15 21:07:44.279: INFO/MainActivity(27612): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b9408
05-15 21:07:44.281: DEBUG/skia(27612): Flag is not 10
05-15 21:07:44.282: INFO/MainActivity(27612): 在执行了9次后        onCreateView   name:ImageView attrs  className:android.content.res.XmlBlock$Parser   attrs:android.content.res.XmlBlock$Parser@427b9408
05-15 21:07:44.282: INFO/MainActivity(27612): 第10次执行 :  onContentChanged() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 21:07:44.282: INFO/MainActivity(27612): 第11次执行 :  onContentChanged() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 21:07:44.283: INFO/MainActivity(27612): 第12次执行 :  onStart()
05-15 21:07:44.283: INFO/MainActivity(27612): 第13次执行 :  onResume()
05-15 21:07:44.302: INFO/MainActivity(27612): 第14次执行 :  onAttachedToWindow() iv1' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 21:07:44.302: INFO/MainActivity(27612): 第15次执行 :  onAttachedToWindow() iv2' width:0 height:0  measuredWidth:0measuredHeight:0
05-15 21:07:44.346: DEBUG/libEGL(27612): loaded /vendor/lib/egl/libEGL_mtk.so
05-15 21:07:44.354: DEBUG/libEGL(27612): loaded /vendor/lib/egl/libGLESv1_CM_mtk.so
05-15 21:07:44.359: DEBUG/libEGL(27612): loaded /vendor/lib/egl/libGLESv2_mtk.so
05-15 21:07:44.393: DEBUG/OpenGLRenderer(27612): Enabling debug mode 0
05-15 21:07:44.395: INFO/MainActivity(27612): 第16次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:07:44.396: INFO/MainActivity(27612): 第17次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:07:44.396: VERBOSE/InputMethodManager(27612): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 21:07:44.396: VERBOSE/InputMethodManager(27612): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427af6e0
05-15 21:07:44.396: VERBOSE/InputMethodManager(27612): Starting input: tba=android.view.inputmethod.EditorInfo@427c83b8 ic=null
05-15 21:07:44.396: VERBOSE/InputMethodManager(27612): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427af6e0 ic=null tba=android.view.inputmethod.EditorInfo@427c83b8 controlFlags=#104
05-15 21:07:44.400: VERBOSE/InputMethodManager(27612): Starting input: Bind result=InputBindResult{null com.yulong.android.coolpadime/.CoolpadIME #527}
05-15 21:07:44.462: VERBOSE/InputMethodManager(27612): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427af6e0
05-15 21:07:44.462: VERBOSE/InputMethodManager(27612): Starting input: tba=android.view.inputmethod.EditorInfo@427cab28 ic=null
05-15 21:08:06.545: VERBOSE/Provider/Setting(27612): invalidate [system]: current 1013 != cached 0
05-15 21:08:06.554: VERBOSE/Provider/Setting(27612): from db cache, name = sound_effects_enabled value = 0
05-15 21:08:06.556: INFO/MainActivity(27612): 第18次执行 :  onClick() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:08:06.556: INFO/MainActivity(27612): 第19次执行 :  onClick() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:08:06.616: INFO/MainActivity(27612): 第20次执行 :  onPause()
05-15 21:08:06.665: DEBUG/dalvikvm(27612): GC_CONCURRENT freed 239K, 16% free 9892K/11715K, paused 3ms+3ms, total 21ms
05-15 21:08:06.709: INFO/TabActivity(27612): 第1次执行 :  onCreate() savedInstanceState:null
05-15 21:08:06.717: INFO/TabActivity(27612): 第2次执行 :  onStart()
05-15 21:08:06.718: INFO/TabActivity(27612): 第3次执行 :  onResume()
05-15 21:08:06.721: INFO/MainActivity(27612): 第21次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:08:06.721: INFO/MainActivity(27612): 第22次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:08:06.757: VERBOSE/InputMethodManager(27612): onWindowFocus: null softInputMode=288 first=true flags=#1810100
05-15 21:08:06.757: VERBOSE/InputMethodManager(27612): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@42774538
05-15 21:08:06.757: VERBOSE/InputMethodManager(27612): Starting input: tba=android.view.inputmethod.EditorInfo@42798c48 ic=null
05-15 21:08:06.758: VERBOSE/InputMethodManager(27612): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@42774538 ic=null tba=android.view.inputmethod.EditorInfo@42798c48 controlFlags=#104
05-15 21:08:06.760: VERBOSE/InputMethodManager(27612): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@4277ada8 com.yulong.android.coolpadime/.CoolpadIME #528}
05-15 21:08:06.804: DEBUG/OpenGLRenderer(27612): Flushing caches (mode 0)
05-15 21:08:07.112: INFO/MainActivity(27612): 第23次执行 :  onCreateDescription() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:08:07.114: INFO/MainActivity(27612): 第24次执行 :  onCreateDescription() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:08:07.116: INFO/MainActivity(27612): 第25次执行 :  onSaveInstanceState()  outState:Bundle[{}]
05-15 21:08:07.117: INFO/MainActivity(27612): 第26次执行 :  onStop()
05-15 21:08:12.022: VERBOSE/Provider/Setting(27612): from settings cache , name = sound_effects_enabled value = 0
05-15 21:08:12.072: INFO/TabActivity(27612): 第4次执行 :  onPause()
05-15 21:08:12.095: INFO/MainActivity(27612): 第27次执行 :  onNewIntent() intent:Intent {  cmp = com.example.finalizetest/.MainActivity, }
05-15 21:08:12.096: INFO/MainActivity(27612): 第28次执行 :  onNewIntent() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:08:12.096: INFO/MainActivity(27612): 第29次执行 :  onNewIntent() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:08:12.125: INFO/MainActivity(27612): 第30次执行 :  onRestart()
05-15 21:08:12.125: INFO/MainActivity(27612): 第31次执行 :  onStart()
05-15 21:08:12.126: INFO/MainActivity(27612): 第32次执行 :  onResume()
05-15 21:08:12.143: INFO/MainActivity(27612): 第33次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:08:12.144: INFO/MainActivity(27612): 第34次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:08:12.145: VERBOSE/InputMethodManager(27612): onWindowFocus: null softInputMode=32 first=true flags=#1810100
05-15 21:08:12.145: VERBOSE/InputMethodManager(27612): Starting input: view=com.android.internal.policy.impl.PhoneWindow$DecorView@427af6e0
05-15 21:08:12.145: VERBOSE/InputMethodManager(27612): Starting input: tba=android.view.inputmethod.EditorInfo@42777e48 ic=null
05-15 21:08:12.145: VERBOSE/InputMethodManager(27612): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView@427af6e0 ic=null tba=android.view.inputmethod.EditorInfo@42777e48 controlFlags=#104
05-15 21:08:12.148: VERBOSE/InputMethodManager(27612): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@427773b8 com.yulong.android.coolpadime/.CoolpadIME #529}
05-15 21:08:12.177: DEBUG/OpenGLRenderer(27612): Flushing caches (mode 0)
05-15 21:08:12.504: INFO/TabActivity(27612): 第5次执行 :  onStop()
05-15 21:08:12.504: INFO/TabActivity(27612): 第6次执行 :  onDestroy()
05-15 21:08:12.509: DEBUG/OpenGLRenderer(27612): Flushing caches (mode 0)
05-15 21:08:14.686: VERBOSE/ViewRootImpl(27612): Sending key event to IME: seq=18, event=KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1044461347, downTime=1044461347, deviceId=2, source=0x101 }, this = ViewRoot{427c2978 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 0}
05-15 21:08:14.689: DEBUG/ViewRootImpl(27612): IME finishedEvent: seq = 18,handled = false,viewAncestor = ViewRoot{427c2978 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 0}
05-15 21:08:14.801: VERBOSE/ViewRootImpl(27612): Sending key event to IME: seq=19, event=KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1044461474, downTime=1044461347, deviceId=2, source=0x101 }, this = ViewRoot{427c2978 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 0}
05-15 21:08:14.803: DEBUG/ViewRootImpl(27612): IME finishedEvent: seq = 19,handled = false,viewAncestor = ViewRoot{427c2978 com.example.finalizetest/com.example.finalizetest.MainActivity,ident = 0}
05-15 21:08:14.805: INFO/MainActivity(27612): 第35次执行 :  finish()
05-15 21:08:14.842: INFO/MainActivity(27612): 第36次执行 :  onPause()
05-15 21:08:14.865: INFO/MainActivity(27612): 第37次执行 :  onWindowFocusChanged() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:08:14.865: INFO/MainActivity(27612): 第38次执行 :  onWindowFocusChanged() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:08:15.041: DEBUG/OpenGLRenderer(27612): Flushing caches (mode 0)
05-15 21:08:15.467: DEBUG/OpenGLRenderer(27612): Flushing caches (mode 1)
05-15 21:08:15.500: INFO/MainActivity(27612): 第39次执行 :  onStop()
05-15 21:08:15.500: INFO/MainActivity(27612): 第40次执行 :  onDestroy()
05-15 21:08:15.503: INFO/MainActivity(27612): 第41次执行 :  onDetachedFromWindow() iv1' width:72 height:72  measuredWidth:72measuredHeight:72
05-15 21:08:15.503: INFO/MainActivity(27612): 第42次执行 :  onDetachedFromWindow() iv2' width:450 height:450  measuredWidth:450measuredHeight:450
05-15 21:08:15.503: DEBUG/OpenGLRenderer(27612): Flushing caches (mode 0)

05-15 20:40:51.718: INFO/MainActivity(22895): 第32次执行 : onWindowFocusChanged() iv1' width:72 height:72 measuredWidth:72measuredHeight:7205-15 20:40:51.718: INFO/MainActivity(22895): 第33次执行 : onWindowFocusChanged() iv2' width:450 height:450 measuredWidth:450measuredHeight:45005-15 20:40:51.764: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 0)05-15 20:40:52.194: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 1)05-15 20:40:52.199: INFO/MainActivity(22895): 第34次执行 : onStop()05-15 20:40:52.199: INFO/MainActivity(22895): 第35次执行 : onDestroy()05-15 20:40:52.200: INFO/MainActivity(22895): 第36次执行 : onDetachedFromWindow() iv1' width:72 height:72 measuredWidth:72measuredHeight:7205-15 20:40:52.201: INFO/MainActivity(22895): 第37次执行 : onDetachedFromWindow() iv2' width:450 height:450 measuredWidth:450measuredHeight:45005-15 20:40:52.201: DEBUG/OpenGLRenderer(22895): Flushing caches (mode 0)
 
  

你可能感兴趣的:(android,Activity生命周期)