我能有一个机器人的活动只在第一次运行一个应用程序被打开?我能、只在、机器人、应用程序

2023-09-12 04:21:17 作者:梦里你风度翩翩

好了,所以我有一个Android应用程序玩弄。

OK, so I'm playing around with an android app.

90%的使用情况是,用户希望直接进入主列表屏幕上找到他们所要寻找的。这就是我想为我的默认屏幕。

The 90% use case is that users want to go straight to the primary list screen to find what they're looking for. That's what I want as my default screen.

第一次但用户加载应用程序,需要进行一些配置前,他们的名单屏幕是任何价值给他们。

The first time a user loads the app however, some configuration is required before their list screen is of any value to them.

所以我的问题,就是如何我可以去查看配置活动的第一次应用程序被打开了,然后在列表屏幕为今后的开口。

So my question, is how I can go about displaying the configuration activity the first time the app is opened up, and then the list screen for future openings.

我也希望把配置屏幕上的演示按钮,所以我想不仅仅是检测,这是第一次,我特别要检测的第一个屏幕中的用户是否已经执行某些配置。

I also want to put a demo button on the configuration screen, so I suppose more than just detecting that it's the first time, I specifically want to detect whether the user has performed certain configurations within the first screen.

推荐答案

我喜欢dweebsonduty的方法。以同样的方式做,这是保存它们的配置信息文件的SD卡上。您的应用程序可以通过检查这些文件并加载信息开始了。如果负载是成功的,它进行到下一个活动,如果没有它启动相应的活动,以提示用户进行输入。

i like dweebsonduty's method. a similar way to do this is to save their configuration information in files on the SD card. your app could start out by checking for those files and loading the information. if the load is successful, it moves on to the next activity, if not it starts the appropriate activity to prompt the user for input.

我已经这样做了同样的事情,但不是swiching活动,我只是切换视图,直到我有我需要的所有信息,然后继续前进。

I have done this same thing, but instead of swiching activities i just switch views until i have all the info i need, and then move on.