« first day (2229 days earlier)   

3:00 PM
how to disable instant run?
 
search in the settings for "instant"
 
(I had no build error yet, just a runtime error)
 
What do you guys do to make gradle builds faster on android studio. It usually takes 3 minutes for a huge project. is that fine?
 
--offline
 
I just sit back and enjoy the fact I get paid to check facebook while I wait
 
3:01 PM
It takes 3 minutes for me for a small project
 
offline, demon, parallel, configureondemand
 
The clean did not work. I get the same error again.
 
though "offline" is not really required as soon as you stop using + as a version wildcard
 
demon :O
 
3 minutes, WOW. your app is small or your computer is fast! I have to wait 6 minutes
 
3:02 PM
Or the following error:
 
even with those 3 minutes is too long.
 
E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
 
that is not a build error
are you running on an emulator?
 
No I think it is still the layout_width error
 
it isn't
 
3:03 PM
But why isn't that catched during the build?
 
because the xml is parsed when you access it
 
Does studio not check if every attributes are ok?
 
it does
if you go in the xml file you should see a red line
 
using multi dex takes longer to build.
 
'layout_height' attribute should be defined less... (Ctrl+F1)
Validates resource references inside Android XML files.
 
3:06 PM
alex, layout_width and layout_height are mandatory
 
can you please google these errors instead of pasting them one by one as they occur
 
Yes, and I have them in the xml code...
 
^^
 
android:layout_width="match_parent"
android:layout_height="match_parent"
 
commentary and drama
 
3:08 PM
So how to fix an error when there is no error?
 
alex, post your whole layout xml file somewhere
 
1) check if you're viewing the correct file 2) ask someone to check it for you (eyes can deceive)
 
put your changes in a git stash and check out the latest commit on develop. See if that compiles and runs again
 
he doesn't use git
 
could it be a style problem?
 
3:10 PM
yes it could
 
no VCS?
in that case I am out
 
I haven't changed the style for a loong time
 
Alex, what was your nickname before you changed it to Alex?
 
wth is on line 90 in content_newentry?
 
a seperator? xml files are a real pain in the ...
why warren?
 
3:17 PM
because I would like to search for some messages
 
I don't think I changed the nickname
Maybe its better to ask the question on SO?
 
definately
> The Eric Birthday channel, where we wish Eric Happy Birthday and discuss his birthday.
WTF
thanks whoever did this
 
argh darn. Happy belated birthday my southern friend! :D
 
Happy birthday
 
@CptEric Happy Birthday!
 
3:29 PM
lol it was friday but thanks again
 
It was carl :)
 
I hate it when libraries are just marking methods and classes as deprecated without giving any alternative in the documentation/javadoc :/
 
not sure if you are trolling now alex
 
based on the amount of questions Alex has already created, it doesn't matter if there is yet another one
 
first error he showed
> java.lang.RuntimeException: Binary XML file line #25: You must supply a layout_width attribute.
he said he checked and that there is
but guess what, there isn't
 
3:42 PM
indeed
haven't checked. He already got his "help vampire" badge in my mind
 
I am trying to use a GridLayout to place items, but I get weird stuff...
Can I post some code?
 
I should start by pointing to our rules
you have now used more than an hour to dig through your ever changing errors
 
These rules --> room-15.github.io?
 
you should stop being a help vampire and start digging by yourself, search and, if nothing helps, create a question on SO explaining your issue
 
yes yes
 
3:52 PM
you should also start to use a VCS system. Some questions of yours are even related to a VCS, so start using one!
 
you should also work on that Q:A ratio
 
I consider that fight lost
 
lol
 
I know I am a bloody beginner, and because of that, and vecause android is really complicated, I have a lot of errors and problems. Sorry about that
 
That's not it
 
3:53 PM
there is nothing to be sorry about
 
not? what then?
 
the problem is that you should start get some skill in helping and debugging yourself first
learn how to debug code
 
good starting point is reading error messages
 
how to do that? How to learn to debug code?
In the current problem I have no error messages. I have a layout issue
 
3:55 PM
if you do not understand your layout, start small and change one thing at a time and understand by the change what is happening
so use the GridLayout and just place one View into it
make it a background color like blue and see how it is layouted
than add a second one with background red
 
The layout worked before. I didn't do any changes. Also, is there some turorial on the many digffeent layouts, the required attributes, the optional and the not needed for everyLayout, TextView, EditView., Button ,.,.,?
 
play with some attributes
> I didn't do any changes
 
I did play with the attributes!!
 
trust me, if there is a changed behavior, you have changed something
 
@Alex try doing a google search with those words. maybe add the language or platform name as part of that search
 
3:57 PM
I did do a google search
 
Bonjour!
 
But not sure how to search, i.e. with that names
 
with what names
 
just google "how to debug android code"
it's not rocket science
 
3:57 PM
replace gridlayout with any other view
 
if you work in NASA is it allowed to say "it's not rocket science"?
 
and there you go, dozens of samples
 
Yes I need to starrt from scratch
Thanks a lot
 
NASA does a lot of stuff thats not rockets too
 
3:59 PM
damn petey, there is even official documentation on that
 
documentation is for losers with too much time on their hands. For the rest of us, there is SO
 
Warren has given great advice @Alex
 
@codeMagic and now SO has made us losers by adding documentation section :(
 
Where do you guys keep network objects? I'm thinking about putting it in an Application class and having my main activity check that its connected during its creation
 
I was just trying to get a quick solution. I know android is not 'quick'. You need to read, to google, to do tutorials, to watch videos, to spend many many hours to understand one tiny bit of android...
 
4:02 PM
if your library doesn't already, you should check if you're connected right before each network call
 
I just found out I do not need the width and height attributes in GridLayout...
 
Tim, that's why I refuse to use it. SO can't make me read if I don't wanna
 
@Tim no library; its my own little class. Event publisher built on top of a Tcp socket
 
same for me cM. I protested a bit about it on meta but that's all my contribution so far
 
@TimCastelijns also it needs to stay open all the time so I don't miss any events
 
4:04 PM
Do anyone knows a tutorial on the layouts in android?
 
I don't know much about sockets, but you can't force the internet not to go out :P
 
Just the layouts?
 
You guys actually don't read documentation?
 
expect that it will fail
 
I am not askijng about the documentation
 
4:05 PM
documentation
 
yeah, I just dont want to recreate it on activity changes. So I'm thinking the Application singleton is a solid place.
 
search with the name of the layout you want to read about
 
least amount of recreation
 
4:06 PM
if you want to read about all of them? Search for all of them
 
genius!
 
It's not a bad idea to tie it to the application lifecycle flakes, but I would put it in it's own singleton class and let Application manage it
 
very funny...
all of you...
 
not funy, that is the daily basis of being a programmer
 
But I had the layout working already...
 
4:07 PM
you read, you read and you test and if you have understand the part, you start to use it
 
Now I have to start from scratch? Is there no other way?
 
can't be if you just learned about width/height today
 
Do you not have Git?
 
no, help vampire without VCS
 
4:08 PM
I learned about width/height a year ago
 
(removed)
very common sense
 
Looks like I spent my first 'ignore this user' well
 
I didn't know that existed. I've just used it as well :D
 
@TimCastelijns oohh thats smart. then I'll just initialize that singleton on the Application#onCreate
 
yes exactly
 
4:10 PM
posted on November 22, 2016 by Android Developers

Originally posted on Google Developers blog Posted by Matteo Vallone, Google Play Partner Development Manager To build awareness of the awesome innovation and art that indie game developers are bringing to users on Google Play, we have invested heavily over the past year in programs like Indie Corner, as well as events like the Google Play Indie Games Festivals in North America and Korea.

 
I have to leave. Time to go home. Have a nice day!
 
See ya Warren!
 
bye bye
 
Application#onCreate always get called before Activity#onCreate, correct?
 

« first day (2229 days earlier)