Update UI from a file on activity create

melamoud

Active Member
Licensed User
Longtime User
hi,

I'm trying to present a checkbox that the status of it is kept in a file, when the actifity is created for the first time, I read the status,

how can I update the checkbox checked member ?
updating it must happen after activity.loadLayout cause before that the checkbox does not exist right ?
and thats too late, it alreday present the checkbox , if I update after the loadLayout happen, it does not change the presentation layer, even if I call invalidate

thanks
 

melamoud

Active Member
Licensed User
Longtime User
problem solved

Thanks, you are too fast :)
I realized that I was updating the data from he file on a seperate thread in a service, thats why it was not working.

thanks
 
Upvote 0
Top