« first day (2588 days earlier)      last day (2378 days later) » 

6:00 PM
3 day weekend for me :D
see you all on monday
 
posted on November 16, 2017 by Android Developers

Posted by Wojtek Kalicinski, Android Developer Advocate, Akshay Kannan, Product Manager for Android Authentication, and Felipe Leme, Software Engineer on Android Frameworks Starting in Oreo, Autofill makes it easy for users to provide credit cards, logins, addresses, and other information to apps. Forms in your apps can now be filled automatically, and your users no longer have to remember com

 
hey guys can i ask an android studio vcs question?
 
how is vcs related to android studio?
 
AS has VCS built into it. I use it for Git all the time.
What's up?
 
Git can be used as-is, it comes with a CLI utility named git
 
6:15 PM
That too
but when I'm in AS it's really nice to just hit command+k to push everything up.
 
After several years I finally decided to just go old school and use git in command line, because GUIs mostly only slow things down.
 
yeah, why leave AS to go git
 
leaving it is not hard, it's not like standing up and walking to a different room
 
I mean you can also access the terminal directly from AS
but I still think going to the terminal tab and doing git commands is unnecessary for simple push/pulls. I still use it for branching and other things though.
 
it's not faster than not directly, if it's still 1 key press
and "regular" terminal can be used not only in AS, but for all kinds of programming
 
6:19 PM
okay forget about android studio, can i ask a question on vcs?
 
yeah
 
I have my project, and I have a local server where i d like to back it up
i cloned my project into the server and now i d like them to be synchronized on every push
i tried to add the local as a remote to the server repository, but then my pushes failed
 
so you have 2 remotes?
"but then my pushes failed" -> exact error message would be helpful
 
1 remote i believe
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
 
6:21 PM
your message is truncated
 
error: failed to push some refs to '/.../.git'
hint: Updates were rejected because the remote contains work that you do
! refs/heads/master:refs/heads/master [rejected] (fetch first)
hint: not have locally. This is usually caused by another repository pushing
Done
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
 
did you try git pull?
 
i think that will overwrite my fresh local copy with the old stuff on the server
 
it won't
if you are scared, do a "regular" backup
 
^
you can just duplicate the folder, pull and take a look
it's designed not to overwrite your stuff though
that's literally what it's for
 
6:23 PM
well, if you use "git checkout ." without understanding what it does…
but "git pull" is 100% safe
 
so what would pull do in this context
 
pull = fetch + merge basically
 
take any changes that are in the server and merge them into your local branch
 
@DaveS lol
 
that lets you sync up so you can push
 
6:25 PM
@OcuS true
 
my local branch is the fresh copy that i want to be comitted to the server
 
and you need to pull first
that's literally what the error is telling you
 
maybe the server isn't "fresh" then
 
the server has changes you don't have, so you need to merge with them before you can push
 
i think i should set the server copy as a remote for my local copy
right now i have the local set as a remote for my server
 
6:27 PM
yes the server should be the remote
 
my plan is to delete the server copy all together
clone the local to server
add server as a remote to local
and then I should be able to merge properly
 
sounds correct
 
@MarkO'Sullivan cya
 
because right now it s just greyed out as an option in my android studio
 
Only in Detroit: Two undercover cops posing as drug sellers met up with two drug buyers, who turned out to also be undercover cops from a different precinct. It led to a fist fight between them. fox2detroit.com/news/local-news/…
3
 
6:30 PM
lmao adam
usb type c is 3.0 right?
 
no
type A can be 3.0
c is just c
 
oh oops
 
okay guys, i did the stuff with git. And now its complaining that the work tree is not the same
refusing to update checked out branch: refs/heads/master
By default, updating the current branch in a non-bare repository
is denied, because it will make the index and work tree inconsistent
with what you pushed, and will require 'git reset --hard' to match
the work tree to HEAD.
 
6:45 PM
sounds like you didn't clear everything out
 
rm -rf not enough ?
 
idk, I've never had this much trouble with git, and if I did have trouble I just removed everything and started over
 
haha i must have a talent for this then
 
@depperm you have write access, but please start by reading the rules first: room-15.github.io
 
7:04 PM
I have read and understood the rules
 
I already like this guy
 
He is something, isn't he?
 
so recently I spotted a bug with the kindle app, I reported it, and they sent an email telling me to un-install and re-install to 'troubleshoot'. Why is this considered troubleshooting and what could cause a bug that requires you to uninstall the app for it to work properly?
 
corrupted local data that gets cleared when you reinstall and is easier to explain to the layman than "clear cache and delete local data"
 
^
9/10 cause
Look at Dave dropping knowledge
 
7:09 PM
@SazzadurRahaman you have write access, but please start by reading the rules first: room-15.github.io
 
can we go 2/2 ?!
 
Thanks!
 
nope
 
I am actually looking for some help on customizing Android framework code. Is there anyone with the experience to work with the Android framework source code?
 
2 mins ago, by Carl Anderson
@SazzadurRahaman you have write access, but please start by reading the rules first: http://room-15.github.io/
 
7:12 PM
Oct 27 at 20:57, by Carl Anderson
We are pedantic about our rules.
 
I have read and understood the rules
 
thanks
I don't know anyone here who has done a lot of work customizing the AOSP
I used to work at Amazon which has their own branch of the AOSP for their Kindle Fire series, but I didn't do any actual development on that.
 
I see ...
Can you suggest any helpful resources on it, that might be useful?
 
It's not a common area of development. It's definitely something more common for device manufacturers. I would start here: source.android.com
 
Hmm you are right ..
Have a great time :)
 
7:22 PM
is there anything in particular you're trying to do, Sazzadur?
 
One day I wanna build and run Android on a device just for the learning experience but I feel like it'd be more work compared to what I'd really gain from the experience.
 
if you work at samsung you will mostly be working on android framework and customising it
they never allow any 3rd party libs. so deal with whatever android provides
 
I'm interested in learning Android, not learning bloatware.
 
If you work at Samsung you will mostly be working on android framework and customising it making annoying edge cases that break app code for no reason due to loose interpretations and straight up negligence.
fixed that for you
 
7:27 PM
Dave is on fire today.
 
@AdamMc331 XD
 
@AdamMc331 you'll mostly be copying lines to input in a terminal, and waiting for them to complete. It's not much of a learning thing
don't know CA. There is a difference between object and array
 
7:45 PM
damn guys, how come everyone s hating on BLE
 
because it sucks ass
 
how come
 
@TimCastelijns at the level of sending a request, JSON is just a string. The serializer takes care of the difference between an array and an object. The Retrofit code shouldn't worry about that detail.
 
lol
BLE is like throwing someone in hell without trail
@AdamMc331 yup
 
@AdamMc331 I imagined all of Dave's hair on fire
 
7:53 PM
I've spent 3 years working with BLE now. It s not that bad
 
lmao tristan
 
Looks like you too
Although his chin is sharper than you are.
 
lmao
Nice
 
7:55 PM
You really are Past Tense Me
 
@TristanWiley I'm tired of your shit, little Dave.
3
 
Tristan is still alive!
Small world
 
lmao what
 
8:09 PM
Adam, ask him if he graduated 8th grade
 
he didn't die yet
 
oh
phew
 
Tristan's in college now! However he's still Wittle Twistan to me and always will be haha
 
hah
Good kid
 
8:22 PM
lmfao adam
 
@Eenvincible Long time no see
 
Oh yes it is
I was told I could do some iOS and now am here
 
@AdamMc331 I think it's adorable how you make Tristan feel older by calling Daycare College.
 
iOS is not my favorite; android is
 
lmao
 
8:25 PM
lmao dave
 
@Eenvincible so are you back on Android now?
 
Both
right now my search history though, smells iOS
 
8:41 PM
has anyone read this, and what are your views
 
Tim you do iOS
 
not anymore
briefly between iOS4 and iOS8
 
For some reason, when I select a cell in a tableview, and attempt to show alert dialog controller, the first time I click it doesnt work
 
In the middle of reading it now Tim
wow, what an awkward article
he goes from a very abstract discussion of Android architecture into "this isn't architecture because I did this with it, THEREFORE DON'T USE IT"
> In most cases, however, libraries should not become part of an application’s architecture
[better argument needed]
@TimCastelijns ^
 
I read bits of it, was mostly curious to hear what other people think about google pushing this AAC stuff
 
8:55 PM
@Eenvincible I do iOS now
 
Trevor now please help this soul
 
I have experimented with it a bit but I am really underwhelmed by it. The design of it and how you should use it feels really awkward
 
should be fairly simple to create and present a UIAlertController from didSelectRowAt
 
I have created and presented BUT
I click the first time, and it doesnt show the alert
when I click for instance the second item in table , it shows
 
is the problem with the event callback, or the alert
 
9:00 PM
I am wondering the same thing;
seems the event is not registered when I select cell
or click rather
 
I think developers as a whole spend way too much time worrying about architecture and need to spend more time worrying about team building and effective communication
I really don't give a shit about your pattern, I just need it to work well and be easy to maintain and extend
 
livedata s meant to be easier to use than rxjava
room is actually a pretty sweet wrapper for the sqlite database
 
I love Room. <3
 
I love Room 15
 
that too
 
9:02 PM
never heard of Room ". <3"
 
-.-
-_-
 
The room formerly known as a number
 
I love lamp
 
Any idea trevor-e
?
 
9:04 PM
@Eenvincible print a log in your didSelectRow event to see if it gets executed
 
@Eenvincible
 
let mee
 
yea hard to say without being able to debug it myself
 
if it gets executed, in the ide look at the view stack
 
9:10 PM
First click/select action is not captured
 
when do you register the click action?
 
Any chance you accidentally typed didDeselectRowAtIndexPath?
It s generally automatically registered in the delegate
 
yes Dave
automatically
@MarcinDeszczynski whaaaaaaaat
am a totally idiot
total idiot
how could I miss that;
thanks Marcin, you have saved me
from pain
 
it s okay
 
I cannot even believe this
 
9:16 PM
i ve spend 2 days before because i was setting a descriptor to Indicate instead of Notify in BLE in the past
 
I feel like a huge weight has been lifted off my shoulders
 
or in xcode my code wouldn't compile because my keyboard has a key that inputs an invisible character into the ide
 
man, there is little good that can be said about it
 
man xcode is actually the worst
i had a compiler error that was fixed by replacing the line with a Log
 
lordy lordy
 
9:19 PM
swift is pretty sweet tho
 
now it works perfectly;
Swift is pretty easy indeed
Tell me though, after I delete an item from a table cell, seems reload function doesn't do what I expect it to do
Like remove item as you would in android adapter
Am I missing something?\
tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.Automatic)
 
not sure, usually i d delete from the source first
then call reload
 
yea, update the data source
 
Yeah am actually deleting item from realm table
then
reload but seems not to behave;
 
are you using Swift2 or something?
 
9:27 PM
4
 
your function names sound like the old naming convention, should be deleteRows(at indexPaths: [IndexPath], with animation: UITableViewRowAnimation)
your style is Swift2, but the naming was updated in Swift3
 
I just found that sample on SO, am not actually using it yet;
 
ah
 
let me see if I can pass indexPath to the alert function
since I need it
 
ofc u can
 
9:30 PM
I have passed it; now testing delete
 
feeling like this currently
 
Good
It's not like we ever talk about Android anyway
 
I try
but the crowd is tough
 
I am captain now!!
This is the best iOS room on SO
:)
 
soo, any1 getting the iphone x?
 
9:36 PM
it might be the only iOS room
 
by the way, are most of u guys employed? does your employer fund your phone?
 
jake wharton OVERRATED Android OUTDATED room15 JEBAITED
 
from android to ios to twitch, how did this happen
 
my work just bought me a new iPhone X, waiting for it to arrive
haha
 
nice, i develop on an iphone 5s i bought on kijiji
for companies worth billions $$, i need a new job
 
9:39 PM
'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (3) must be equal to the number of rows contained in that section before the update (3), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
More nightmares
 
where are you from marcin? Name sounds polish
 
it is, im from canada though
 
@trevor-e apostolate
 
o/
 
9:43 PM
wassup dawg
 
nothing much
 
So apparently, you have to remove the item from the array/list before delete from table
 
makes sense
 
You have been incredibly helpful guys! Thanks
 
10:04 PM
@TimCastelijns FB too? Now you're pushing things.
:D
 
it if makes you feel any better, I invited like 4 more today
 
@Eenvincible that is what we meant by updating the data source
 
Now I get it
 
you will never forget it
 
10:20 PM
Never;
 
didn't know this was a thing Application.ActivityLifecycleCallbacks
 
yeah I've used it
 
what was the use case? (to check if I'm doing something that shouldn't be done)
 
I was checking which activity was currently on the foreground, to determine if I needed to show a notification for a new message or not
 
Perfect, I'm doing it to retrieve from the Http Client, a net/db workers I have on each activity
 
10:32 PM
why do activities have those workers?
 
Good question, that's something I'll have to refactor eventually, I initially done it since every activity has at least a Net and a Local storage operation, so I can only do netWorker.post (....), or dbWorker.get (....)
 
"I initially done" here it should be "did"
 
"I initially done" here it should be "Shouldn't have"
 
you're both right :D
 
whom'st'd've
 
10:38 PM
 
:(
 
jk <3
 
he's not though
You're a walking buzzkill
you're like the snail from Always Sunny
 
the salt he was holding was infinite
 
:(
 
10:52 PM
:/
 
x.x
 
11:03 PM
whoa! Jon Skeet asks questions?
25
Q: Is it possible to access the compressed data before decompression in HttpClient?

Jon SkeetI'm working on the Google Cloud Storage .NET client library. There are three features (between .NET, my client library, and the Storage service) that are combining in an unpleasant way: When downloading files (objects in Google Cloud Storage terminology), the server includes a hash of the store...

 
yeah he's not the brightest lad
 
hahaha
 
11:16 PM
 
lol
 
I really don't know who at apple thought that replacing the old keyboard is gonna be cool
 
11:41 PM
I'm guessing the same genius who thought the touchbar would be cool
 
11:52 PM
ah yes, that awesome creative artist
who only uses a graphical tablet and never uses the keyboard
 

« first day (2588 days earlier)      last day (2378 days later) »