我使用以下代码在我的服务中显示视图,如何禁用/隐藏/阻止在我的代码中打开通知栏?
public void onStart(final Intent intent, final int n)
{
numIs = 1;
this.view = ((LayoutInflater)this.getSystemService("layout_inflater")).inflate(R.layout.screen, (ViewGroup)null);
this.windowManager = (WindowManager)this.getSystemService("window");
final WindowManager.LayoutParams windowManagerLayoutParams = new WindowManager.LayoutParams();
windowManagerLayoutParams.type = 2002;
windowManagerLayoutParams.format = 1;
windowManagerLayoutParams.flags = 40;
windowManagerLayoutParams.height = -1;
windowManagerLayoutParams.width = -1;
this.windowManager.addView(this.view, (WindowManager.LayoutParams)windowManagerLayoutParams);
}