如何在我的Andr​​oid应用程序进行注销? [英] How to Perform logout in my application in android?

查看:118
本文介绍了如何在我的Andr​​oid应用程序进行注销?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过它在第一时间获取用户登录的应用程序,那么他仍然登录....由于我的应用程序包含在里面聊天,所以用户需要,而​​在应用程序中记录......但我想执行注销当应用程序在后台...那么如何做到这一点?

I have an application through which user gets logged in during the first time,then he remains logged in.... Since my application contains chat in it,so the user needs to be logged in while in application... but i want to perform logout when application is in background...SO how to do this?

推荐答案

覆盖的 的onPause() 的方法,如果你想注销用户每次聊天的活动被切换到后台。

override onPause() method if you want to logout user each time chat activity goes to background.

这篇关于如何在我的Andr​​oid应用程序进行注销?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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