检查我的应用程序在Android中,如果第一次使用 [英] Check if first-time user of my App in Android

查看:153
本文介绍了检查我的应用程序在Android中,如果第一次使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,首先它显示启动画面。另一个活动后,那么我的主要活动必须证明。这是我的设计方案。第二项活动(即主要活动前)必须显示为应用程序的第一次使用。如果他/她关闭了应用程序,闪屏会自动跳转到主要活动。我该怎么做呢?有任何想法吗?我开发我的应用程序的Andr​​oid手机。

In my App, first it shows a splash screen. After that another activity, then my main activity must be shown. This is my design plan. The second activity (i.e before main activity) must be shown for the first-time user of the app. If he/she closes the app, splash screen will redirect to main activity automatically. How do I do this? Any ideas? I am developing my app for Android phones.

推荐答案

坚持 preferences 并检查它在启动时。飞溅显示一次后改变它的状态。

Persist a flag in preferences and check it on startup. Change it's state after the splash is shown once.

这篇关于检查我的应用程序在Android中,如果第一次使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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