zoukankan      html  css  js  c++  java
  • 团队冲刺

    第二天

    完善了发布动态和更改个人标签的功能

    测试还有一些缺陷,可以发空动态,后面会限制关键词和内容

     部分重要函数

     Button btn_submit = findViewById(R.id.btn_submit);
    btn_submit.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
    BmobQuery<Bean> b = new BmobQuery<Bean>();
    b.addWhereEqualTo("Phone", phone);
    b.findObjects(new FindListener<Bean>() {
    @Override
    public void done(List<Bean> object, BmobException e) {
    if (e == null) {
    if (object.size() > 0) {
    Bean bean = new Bean();
    bean.Sex=one;
    bean.Age=two;
    bean.Interest=three;
    bean.Game=four;
    bean.Music=five;
    bean.Movie=six;
    bean.Sport=seven;
    bean.Read=eight;
    bean.Character=nine;
    bean.update(object.get(0).getObjectId(), new UpdateListener() {
    @Override
    public void done(BmobException e) {
    if (e == null) {
    Toast.makeText(MatchScreen.this,"提交成功!",Toast.LENGTH_SHORT).show();
    Intent intent = new Intent(MatchScreen.this, Match.class);
    intent.putExtra("phone", phone);
    intent.putExtra("id", id);
    startActivity(intent);
    finish();
    }
    }
    });
    }
    }
    }
    });
    }
    });
    }
  • 相关阅读:
    c# 串口所有数据接收 到串口的数据全部处理
    c# 串口调试
    GMap.net离线地图 教程连接
    (转).net 开发人员如何自处
    网址
    文本--->多字节
    .NET 数据库sa
    JAVA线程池
    使用visualvm远程监控JVM
    Session概述(选自WebX)
  • 原文地址:https://www.cnblogs.com/D10304/p/14912412.html
Copyright © 2011-2022 走看看