应该来这活动了先?定义为发射器? [英] Which activity should come up first? defined as launcher?

查看:244
本文介绍了应该来这活动了先?定义为发射器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有一个登录界面,然后其活性显示我的应用程序的主要功能。

If I have a login screen and then the activity which displays the main functionality of my application.

哪一个应被视为默认=发射活动?

Which one should be deemed as the default=launcher activity?

我应该拥有的登录屏幕启动,如果用户名/密码在preferences存在,就会跳过?
或者我应该有我的主要活动作为一个启动,如果没有用户名/密码是present应该启动登录活动?

Should I have the login screen as launcher which will be skipped if the username/password exist in the preferences? Or should I have my Main activity as a launcher which should start the login activity if no user/password are present?

我发现下面的谷歌的指导方针:
http://developer.android.com/guide/practices/design/seamlessness.html

I have found the following google guiding lines: http://developer.android.com/guide/practices/design/seamlessness.html

看标题:不要过载一个活动屏幕

Look at the title: Don't Overload a Single Activity Screen

我不知道,我理解正确的话,但如果我这样做,那么就意味着在登录屏幕应该是发射画面。

I am not sure that I have understood it correctly, but if I did, then it means that the login screen should be the launcher screen.

我是正确的?
你有什么建议?

Am I correct? What do you suggest?

推荐答案

这是一个常识做什么。

在成功登录保存用户名和密码在SQLite数据库或保存共享preferences 。检查数据侧媒体链接存在的OnCreate()方法OG登录活动

On successfully login save username and password in sqlite database or save in SharedPreferences. and check data allready exist in side oncreate() method og Login Activity

如果用户名密码存在于共享preferences 或SQLite数据库。启动活动中,你的主要功能。

if username and password exist in SharedPreferences or sqlite database. start your activity in which you have main functionality.

这篇关于应该来这活动了先?定义为发射器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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