Size: a a a

Android Developers

2020 April 09

N

Noel in Android Developers
I have an autoincremented primary key and when I try to update a elements in my SQLite database I get a CHECK constraint failed. Someone helps?
источник

N

Noel in Android Developers
Before I had some check constraints, but now I've just delete them, but it keeps giving the error
источник

N

Noel in Android Developers
Is it possible that the constraints I had hadn't disappeared??
источник

Н

Никита 🙃 in Android Developers
А есть способ сделать в Toolbar'e меню без зарание собранного xml?
Мне просто и кнопки, и иконки (fontawesome) присылает бэк. Или только в тупую добавлять вьюхи в тулбар только, как обычные TextView?
источник

Н

Никита 🙃 in Android Developers
Просто у меню же есть дефолтная логика, что если не вмещается, то заменяется тремя точками. Поэтому хочется сделать через меню, но чёт хз как
источник

QH

Quantum Harmonizer in Android Developers
Никита 🙃
А есть способ сделать в Toolbar'e меню без зарание собранного xml?
Мне просто и кнопки, и иконки (fontawesome) присылает бэк. Или только в тупую добавлять вьюхи в тулбар только, как обычные TextView?
не как текствью, а как меню айтемы
источник

QH

Quantum Harmonizer in Android Developers
Noel
Is it possible that the constraints I had hadn't disappeared??
you can check it. Take db file to your desktop and open it via SQLiteman or any other tool (DBeaver?).
источник

N

Noel in Android Developers
I think I already solved it
источник

N

Noel in Android Developers
I had to fully uninstall the app from my emulator in order to the changes for the data base constraints reset
источник

N

Noel in Android Developers
It didn't work by updating the app it already had installed
источник

QH

Quantum Harmonizer in Android Developers
Noel
It didn't work by updating the app it already had installed
yep, this called 'database migration' and requires some effort
источник

VT

Vladimir Titov in Android Developers
Всем привет, такая проблема, на одном устройстве приложение стартует только из гугл плея? В чем может быть проблема?
источник

N

Noel in Android Developers
Quantum Harmonizer
yep, this called 'database migration' and requires some effort
Speaking of that, if when I finish my app and start using it. If I ever want to make another more complex version of my app (2.0 for example) how could I migrate the database I already had to the new one without losing all data. Is there any way?
источник

QH

Quantum Harmonizer in Android Developers
Noel
Speaking of that, if when I finish my app and start using it. If I ever want to make another more complex version of my app (2.0 for example) how could I migrate the database I already had to the new one without losing all data. Is there any way?
Yes there is.
источник

N

Noel in Android Developers
How?
источник

QH

Quantum Harmonizer in Android Developers
Noel
How?
just google it
источник

IK

Igor Komarov in Android Developers
Noel
Speaking of that, if when I finish my app and start using it. If I ever want to make another more complex version of my app (2.0 for example) how could I migrate the database I already had to the new one without losing all data. Is there any way?
You mean it's completely different application (different package name), or same application with updated database schema?
источник

N

Noel in Android Developers
Gimme the key words to Google
источник

QH

Quantum Harmonizer in Android Developers
Noel
Gimme the key words to Google
android sqlite migration
источник

N

Noel in Android Developers
Igor Komarov
You mean it's completely different application (different package name), or same application with updated database schema?
The same application but probably a new version (many differences in code) and a new update database schema
источник