Android SDK 6.1.1
存储
AVObject note0 = new AVObject("Notes");
note0.put("date", new Date());
note0.put("title",dialogEditTitle.getText().toString());
note0.put("content",dialogEditContent.getText().toString());
note0.saveInBackground().subscribe(FragmentNote.this);
查询
AVQuery<AVObject> query = new AVQuery<>("Notes");
query.findInBackground().subscribe(new Observer<List<AVObject>>() {
@Override
public void onSubscribe(Disposable d) {
}
@Override
public void onNext(List<AVObject> avObjects) {
Toast.makeText(getContext(), "共获取到" + avObjects.size() + "条便签", Toast.LENGTH_LONG).show();
}
@Override
public void onError(Throwable e) {
}
@Override
public void onComplete() {
}
});
查询后,返回0条数据
-
创建时间
19年12月7日
-
最后回复
19年12月9日
- 1
回复
- 187
浏览
- 2
用户
- 1
链接
