When phone state is ringing, I want to run an activity to show my own screen.
I'm using:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.main);
and
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
but notification bar does not hide when activity is shown.