第二阶段冲刺-06
昨天,主要对前几天的代码进行整合,将现有的功能添加到了项目中
遇到的问题:由于运用了自动登录,刚开始在界面跳转那一块出现错误,后来通过获取用户名的值,并传到相应的界面,解决了
今天准备做:继续进行饼状图的研究。
if (UserManage.getInstance().hasUserInfo(this).getUserName()!="")//自动登录判断,SharePrefences中有数据,则跳转到主页,没数据则跳转到登录页
{
String name = UserManage.getInstance().hasUserInfo(this).getUserName();
Log.i("tag","------"+name+"-----");
Intent intent = new Intent(MainActivity.this, loginactivity.class);
intent.putExtra("account",name);
//intent.putExtra("")
startActivity(intent);
finish();
}
浙公网安备 33010602011771号