软工每日总结4

今天听到小组的同伴提到有一位热心的友人提出我们的登陆-注册系统存在一个安全问题就是密码使用明文保存,这样的话一旦发生数据库泄漏事件将会造成很大的影响,所以今天紧急修改代码将密码改成了md5加密保存,响应用户的反馈,提高了软件的安全性。

 今天的计划内工作是学习百度api的定位和输入提示功能:

@Override
public void onTextChanged(CharSequence cs, int arg1, int arg2,
int arg3) {
Log.e("e","on");
if (cs.length() <= 0) {
return;
}
String city = "北京";
mSuggestionSearch.requestSuggestion((new SuggestionSearchOption()).keyword(cs.toString()).city(city));
isDW=true;
}

new View.OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub

if(startLocation.getText().equals("定位")){
((LocationApplication)getApplication()).restart();
mLocationClient = ((LocationApplication)getApplication()).mLocationClient;
((LocationApplication)getApplication()).mLocationResult = editSt;
initLocation();
mLocationClient.start();
isDW=true;
editSt.setFocusable(false);
startLocation.setText("取消");
}else{
mLocationClient.stop();
editSt.setFocusable(true);
startLocation.setText("定位");
isDW=false;
}
}
});

public void onGetSuggestionResult(SuggestionResult res) {
if (res == null || res.getAllSuggestions() == null) {
Log.e("e", "invalid");
return;
}
str=new String[10];
int i=0;
for (SuggestionResult.SuggestionInfo info : res.getAllSuggestions()) {
if (info.key != null&&i<10) {
str[i] = info.key;
Log.e("e",info.key);
i++;
}
}
sugAdapterSt = new ArrayAdapter<>(this,
android.R.layout.simple_dropdown_item_1line,str);
editSt.setAdapter(sugAdapterSt);
sugAdapterEd = new ArrayAdapter<>(this,
android.R.layout.simple_dropdown_item_1line,str);
editEn.setAdapter(sugAdapterEd);
}

posted @ 2016-07-04 23:03  13070026王志东  阅读(151)  评论(0编辑  收藏  举报