第一次使用该应用程序时,我将向用户显示一个登录屏幕,我将在清单文件中将其定义为“android.intent.action.MAIN”。 成功登录后,每次应用程序启动时,我都希望用户看到主屏幕。 请让我知道如何实现这一目标。
另请告诉我有什么办法可以在成功登录后以编程方式更改MAIN活动,这样我就可以重定向到主屏幕了。
谢谢,
维杰
For the first time use of the application I will show the user with a login screen which i will defined in manifest file as "android.intent.action.MAIN". After a successful login, each time application starts I want the user to see the home screen. Please let me know how i can achieve this.
Also please let me know is there any way I can change the MAIN activity programmatically after a successful login, So that I can redirect to the home screen.
Thanks,
Vijay
最满意答案
如果您继承Application类并从Application的onCreate()调用所需的活动,该怎么办? 在清单中你删除了那个intent.MAIN 。
What if you subclass Application class and call the activity you need from your Application's onCreate() ? And in the manifest you remove that intent.MAIN.
更多推荐
发布评论