检查我的应用程序在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.