I
I
ivanfenenko2014-04-03 15:10:49
Android
ivanfenenko, 2014-04-03 15:10:49

How to make ListPreference with adapter in android?

How to make a ListPreference element with an adapter in PreferenceActivity to display list items from the database?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mokhirjon Naimov, 2015-08-18
@zvermafia

It turns out that it was necessary to write status = '1'
That is:
The status field was enum(-1, 0, 1), but I did it in Laravel Migrations:
And in PHPMyAdmin it shows the field type (status) like this:
In short, everything was decided

T
toxa82, 2015-08-18
@toxa82

You most likely have an error with priorities in WHERE and your second option is
and so `status` only counts with the `description` field, while `title` and `domain` are chosen with any status

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question