mercredi 6 avril 2016

ActiveAndroid returns always empty results

I tried to add ActiveAndroid to my firs Android app. No errors so far, my items are being saved (I checked it with an sqlite manager) but no matter what query I use: The result is always empty. I only have on model (Todo) and only strings, booleans and one date to be saved.

I use Android 6.0 SDK 23 with genymotion emulator and ActiveAndroid 3.0.

What I tried:

  • ArrayList<Model> list = Model.all(Todo.class);
  • ArrayList<Model> list = new Select().from(Todo.class).execute();
  • Todo item = return new Select().from(Todo.class).where("id = ?", 1).executeSingle();
  • ...

The size of the lists is always 0 and item (when searching for one item) is always null. I get no errors.

Any ideas?

Aucun commentaire:

Enregistrer un commentaire