Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

android-todolist

TodoList App,示例了数据的增删改查,推荐。

Subscribe to updates I use android-todolist


Statistics on android-todolist

Number of watchers on Github 27
Number of open issues 0
Average time to close an issue 15 days
Main language Java
Open pull requests 0+
Closed pull requests 0+
Last commit over 4 years ago
Repo Created almost 5 years ago
Repo Last Updated about 2 years ago
Size 283 KB
Organization / Authorbaasbeginner
Contributors1
Page Updated
Do you use android-todolist? Leave a review!
View android-todolist activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating android-todolist for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Todo

Todo

img

img

  • , AVObject AVQuery
  • AVObject
  • ,
  • ,
  • Android Gradle
  • Eclipse SDK SDK

App

Demo app id app keycom.avos.demo.ToDoListApplication id key

ClassTodo

AVOS Cloud AVService.java

public class AVService {
  public static void AVInit(Context ctx) {
    //  Id   Key
    AVOSCloud.initialize(ctx, "70l90kzm53nplnu013ala0j8wipr594d36m5zuz94ukvmh5s",
        "lamrsuheyiaqcx4o7m3jaz4awaeukerit1mucnjwk7ibokfv");
    // 
    AVAnalytics.enableCrashReport(ctx, true);
    // 
    AVObject.registerSubclass(Todo.class);
  }

  public static void fetchTodoById(String objectId,GetCallback<AVObject> getCallback) {
    Todo todo = new Todo();
    todo.setObjectId(objectId);
    // Fetchcontent
    todo.fetchInBackground(getCallback);
  }

  public static void createOrUpdateTodo(String objectId, String content, SaveCallback saveCallback) {
    final Todo todo = new Todo();
    if (!TextUtils.isEmpty(objectId)) {
      // objectId
      todo.setObjectId(objectId);
    }
    todo.setContent(content);
    // 
    todo.saveInBackground(saveCallback);
  }

  public static List<Todo> findTodos() {
    // Todo
    AVQuery<Todo> query = AVQuery.getQuery(Todo.class);
    // 
    query.orderByDescending("updatedAt");
    // 1000
    query.limit(1000);
    try {
      return query.find();
    } catch (AVException exception) {
      Log.e("tag", "Query todos failed.", exception);
      return Collections.emptyList();
    }
  }

  public static void searchQuery(String inputSearch) {
    AVSearchQuery searchQuery = new AVSearchQuery(inputSearch);
    searchQuery.search();
  }
}
android-todolist questions on Stackoverflow (View All Questions)
  • sync android todolist with google calendar
android-todolist list of languages used
Other projects in Java