How to add images to DB Browser for sqlite that are stored in drawable folder?
I am trying to pre-populate a room database with some data using DB Browser for sqlite.
I have a table defined with (name: String, score:Int, image:Int). That image field stores an image from drawable folder so the example for an insert would be :
INSERT INTO player (name,score,image) VALUES ("Mike", 31, R.drawable.mike)
Since the table field is Int, DB Browser wont let me store R.drawable.mike which is the image location in android studio as it expects a number. Error :
Execution finished...