如何显示一个一次性的欢迎屏幕? [英] How to display a one time welcome screen?

查看:98
本文介绍了如何显示一个一次性的欢迎屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid应用程序,我需要设计一个欢迎界面应用程序被安装并打开后,将显示给用户只有一次。有问题的应用程序是一个数据库驱动的应用程序,我很想有一些3 - 4屏幕,以帮助用户创建可重用的资源,为应用程序和一些技巧中使用。他们将是对话的警报和最后一个欢迎屏幕显示不再显示复选框。

In my android app, I need to design a Welcome Screen which will be shown to the user only once after the app is installed and opened. The app in question is a database driven app and I would love to include some 3 - 4 screens to help the user create re-usable resources for use within the app and a few tips. They would be Dialog Alerts with the last welcome screen showing the "Do Not Show Again" checkbox.

这个问题还真是,如何显示欢迎屏幕只有一次。任何帮助或指针的效果是多少AP preciated。

The problem really is, how to show the welcome screen just once. Any help or pointers to that effect are much appreciated.

推荐答案

保存在preferences一个标志,当你启动应用程序,你已经做了欢迎屏幕的东西之后。检查这个标志,你在欢迎屏幕前。如果标志是present(换句话说,如果它不是第一次了),没有表现出来。

Save a flag in the Preferences when you start up the application, after you've done the welcome screen stuff. Check for this flag before you show the welcome screen. If the flag is present (in other words, if it's not the first time), don't show it.

这篇关于如何显示一个一次性的欢迎屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆