Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对java和android都是新手,所以如果我遗漏了一些明显的东西,我深表歉意。
我试图让用户保持登录到应用程序。做这个的最好方式是什么?有人可以指点我的教程吗?我在网上搜索过,似乎找不到任何东西。
谢谢!
登录是什么意思?就像用户登录/传递到您通过您的应用程序访问的外部站点一样?为此,您应该将数据保存在应用程序的 SharedPreferences 中,然后在启动时检查 Preferences,然后为用户登录。