Android注销功能
2016-03-15 13:23
369 查看
// 注销 清空TaskStack
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
Intent logoutIntent = new Intent(getActivity(), LoginActivity.class);
startActivity(logoutIntent);
}
}));
System.exit(0);
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
Intent logoutIntent = new Intent(getActivity(), LoginActivity.class);
startActivity(logoutIntent);
}
}));
System.exit(0);
相关文章推荐
- Android学习之布局
- Android应用的耗电量统计
- Android基础-CheckBox用法
- android杂记
- Android Scroller工具类的简单用法
- android 采用windowmanager屏蔽HOME键
- Android <shape>定义图形
- classes could not be found: - android.support.v7.i
- Android自定义控件
- Android与HTML+JS交互入门
- Android基础-RadioButton用法
- android 6.0权限请求
- LiteOrm:Android高性能数据库框架
- android获取屏幕密度dpi
- Android SQLite学习
- Android四大组件深度解析
- android5.0新特性1Styke风格,颜色搭配,风格转换,不做Intent切换的动画
- Android为Layout设置最大宽度
- CSDN上最火的android项目
- android不一样的listView的empty