I wrote a little program looking like this:
package com.example.lifecycle;
import android.app.Activity;
import android.content.Context;
import android.os.Bu
You have extended your class with Activity. That means your class' lifecycle would be as below.

So, onCreateView is not a lifecycle method for activity. It's just a member method which will be used for specified tasks as said in doc.
Standard implementation of android.view.LayoutInflater.Factory.onCreateView used when inflating with the LayoutInflater returned by getSystemService. This implementation does nothing and is for pre-android.os.Build.VERSION_CODES.HONEYCOMB apps. Newer apps should use onCreateView(View, String, Context, AttributeSet).
To rely on the call of onCreateView() in an Activity is bad programming.
If you were using Fragment extended to your class and have written onCreateView() method, then it would have been called only twice after your onAttach() and onDestroyView() if you are still on same fragment.
See this diagram.

Here, it's a method of lifecycle for Fragment.
So, you are testing with wrong assumptions. That's all!