@LawGimenez the books behind the Skin Game book are so aligned and selected that you can read "Never going to give you up, never going to let you down". I guess you know the song :)
does all android studios run the app with crtl-R or just mine beucase it's configured like AppCode? i don't remember using it when i had it stand-alone.
Anybody else get that thing where at night they think "I'll sort that out at lunch time in the office" every single night, yet never remember it when you're in the office.
I'm supposed to be getting something... and I can't remember what.
Which reminds me, I need to buy batteries on my way home and fit a plug socket when I get home (both of which I will forget when I'm in the right place to actually do what I want).
so in my build.gradle i have put dependencies { compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.cli‌​ent:4.1.2' }
In Android Marshmallow (sdk 23), you can add:
useLibrary 'org.apache.http.legacy'
to build.gradle in the android {} section as a workaround. This seems to be necessary for some of Google's own gms libraries!
Deprecated means that you shouldn't use it but you can use it but keep in mind that you will sooner or later run into a crash/compile error if the method was completely removed
good documented API suggests what you should use instead
My coworker and I are wondering: should an adapter be allowed to modify the list inside of it? Ex: You have a fragment with a recyclerview and adapter. Let's say you want to add an item to it. Should the adapter have a .add() method to do it, or should the fragment do it via something like recyclerview.getAdapter().notifyItemAdded()?
You can override create custom notifiy method which will be called just after add() of adapter class , inside notify() you can write like notifyItemAdded() :)
I've used the pattern of creating Adapters with a handler so that when you add() or remove() on the adapter, it knows to update itself. It helps to isolate the adapter's functionality.
Right. His idea was that the Adapter's sole responsibility is to display the list and handle how the views are displayed, not modify it in any way. Essentially saying the list of items belongs to the fragment, not to the adapter.
> Multi-threaded Android applications are difficult because you have to make sure to run the right code on the right thread; mess up and your app can crash. The classic exception occurs when you try to modify a View off of the main thread.
That moment when you realise you already wrote code to handle several cases which you were currently thinking of handling in a dumber way than you already did
@WarrenFaith I now pronounce thee Guardian of The Other Hours, may your duties be well
now that you're a room owner Warren you'll need to learn how to use your powers - go to the "access control" list page and reject Telkitty for help vampirism ;-)
So say you're a teacher, and you want to add a student to your district. (Bullying system thing). You can either add a bunch of students via a CSV or similar file. Or you can add one by just entering their information. How would you want to add one, think HTML/CSS