« first day (3186 days earlier)      last day (1766 days later) » 

7:23 AM
LIES
 
8:17 AM
I tried so hard.... and got so far but in the end, it does not even matter!!1!
@MehdiB. I could not find a single file of that book that was not messed up
So I then opted for "Head first : Java"
 
Does someone here know about room db and can help me to figure out how to link two tables?
 
No.
At least, no one here right now
It's a weekend, take some time off
Overthrow CF's last remaining strongholds
 
:-(
Well.. I'll try tomorrow then
 
Why bother, just give up already
Store everything in shared preferences
 
That's too much
Better not store anything at all
 
8:23 AM
It's just a test that I'm doing with room
And it's a large object though
 
Or better yet, If I were you I would get a paper and a pen, draw a room on it and imagine that my problem is solved
What do you mean by linking two tables? Like why?
 
Just use duct tape
All engineering problems can be solved with duct tape or explosives
It is known
 
I would rather lick it and try to join it then
 
That's just weird, you should get help
Lots of it
 
8:28 AM
I'm storing words that user types, every word contains a List<Object> or a single Object, the thing is I want to get all of the Object from one word. Means:
User types Cat and it returns (Animal, 4 feet, 2 ears)
Buut, if user types Dog it will return ( Animal, 4 feet, 2 ears, bla bla)
So, when user types Dog I want to return the list that's what I want to store in room db, I already have the search stored I need to link it to other table, thing is how do I know ` ( Animal, 4 feet, 2 ears, bla bla)`is from Dog and Cat
 
Seems complicated, best wait for the smart people to show up next week
 
9:04 AM
Is it okay to cut my leg off if it slightly hurts for a moment?
 
Yes do it
 
10:05 AM
How does google fit track location data in background when app is not in foreground on android 9
developer.android.com/guide/topics/sensors/sensors_overview according to the best practices you need to have a foreground service
@AdamMc331 come to droidjam india also and give talk.
 
Google is notorious for giving their apps system level access
 
i guessed it. it also tracks user visits to certain locations.
but runtanstic and other apps do have a foreground notification to continuously track sensor and location details
yes and we as dumb users would have given permission for all those
 
This was the most starred message last year on this day:
Jul 7 '18 at 19:53, by Code-Apprentice
in Python, 2 hours ago, by MichaelEvanchik
i have googled the entire internet
 
 
2 hours later…
12:24 PM
guys
anyone knows how to mute all notifications from others apps
 
12:47 PM
Put your phone on vibrate
 
 
2 hours later…
3:13 PM
@Skizo-ozᴉʞS you're looking for the "trie" datastructure
 
3:31 PM
@IvanMilisavljevic because you end up quickly falling in the trap of having a very deep hierarchy of inheritances
when you're at level 2 and realise the 10 classes could use something shared, but then the 20 others don't, so you create a new abstract class at level 3 under which the 10 classes will fall, and so on for the rest
so it becomes so coupled it becomes a nightmare in maintenance
 
4:16 PM
posted on July 07, 2019

Android Weekly #369 📱 #outlook a{ padding:0; } body{ width:100% !important; margin:0; padding:0; } body *{ -ms-text-size-adjust:none!important; -webkit-text-size-adjust:none!important; } body,.wrapper{ background:#ffffff; color:#505050; font-family:Arial, sans-serif; font-size:12px; } table,table td{ border-collaps

 
 
1 hour later…
5:26 PM
America first, Netherlands second
 
5:58 PM
Ribbit
 
6:14 PM
@MehdiB. Well now I'm trying to put inside an entity a List<String>...
 
Inside a room entity?
 
6:33 PM
Well, I'm trying to create a room entity with a response of a json there are 5 atributes that are Strings and no problem but when I try to insert the 6th one that is a List<String> I'm having problems...
 
so you're looking for the Dogs properties, and your issue is that both the cat and the dog share the same ones?
@TimCastelijns congrats!
 
Are you familiar with Room @MehdiB.?
 
Yes
 
Ok, perfect, so my problem is that this is my entity that I want to store :
@Entity(tableName = "my_item")
data class MyItem(
@PrimaryKey
@NonNull
@ColumnInfo(name = "id")
val id: Int,
@ColumnInfo(name = "name") val name: String,
@ColumnInfo(name = "description") val description: String,
)
it works, but when I try to add val listNames: List<String> it doesn't work
 
Yeah I don't think you can store a list like that, since it's just a list of strings you could store it as a string representing the content, either by joining the content with a separator or storing the whole thing as a json array as a string
 
6:54 PM
He's trying to store an ArrayList<String>? And doing the convertor it does?
 
The converter basically converts that arraylist automatically into a json array converted to a string which is then stored in the db, and when reading it converts back that array into an arraylist
 
But then
I can check for instance if there's X in the list?
Because I want to Query that to get all elements that matches
Because now I want to do something like

`@QUERY("SELECT * FROM MYTABLE WHERE MY_LIST CONTAINS ANY STRING")`
 
you could use LIKE in that case
SELECT * FROM MYTABLE WHERE MY_LIST LIKE "%ANY STRING%"
 
7:26 PM
Shangeeth Sivan requested access. Rep: 551 - Questions: 4 - Answers: 9 (ratio 4:9)
 
!accept
 
@ShangeethSivan welcome. Please start by reading the rules and confirm you have read them before saying anything else.
 
7:37 PM
Let me try, thanks @MehdiB. :D
 
7:51 PM
Sandipan Majhi requested access. Rep: 36 - Questions: 0 - Answers: 1 (ratio 4:Infinity)
@ShangeethSivan your access has been revoked because you did not respond
 
 
1 hour later…
9:16 PM
!reject
 
@SandipanMajhi you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
10:03 PM
@MehdiB. but we lost
 

« first day (3186 days earlier)      last day (1766 days later) »