如果应用程序处于全屏模式,可以在通知栏上显示通知吗?
我的应用程序处于全屏模式:
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
我想在状态栏中显示我的应用程序上的推送通知。
如果我的应用程序处于全屏模式,当我的应用程序收到推送通知时,状态栏是否会显示?
谢谢
i have my app in fullscreen mode:
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
I want to show push notifications on my app in the status bar.
Will the status bar be shown when my app receives a push notification if my app is in full screen mode?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不......从应用程序进入主屏幕后,您将能够在通知栏中看到通知! (或者通过单击“主页”按钮打开主屏幕)。如果您的应用处于全屏状态,您将无法看到通知。
No..you will be able to see the notification in the Notification bar after you come to home screen from the app! (Or open the home screen, by clicking the Home button). You won't be able to see the notification if your app is in fullscreen.