« first day (1377 days earlier)      last day (3563 days later) » 

12:06 AM
I'm off
good night
screw that. it's too early to sleep.
someone got something cool I could watch?
I could watch this silicon valley series
been wanting to watch that for a while now
 
user457812
Severe thunderstorm here. Something just took out the power.
 
user457812
Also a few trees down outside.
 
user457812
Guess it's good I got back from my walk already.
 
user457812
12:22 AM
 
user457812
Today's gonna be great, I can tell.
 
user457812
1:22 AM
Power still out. Lots of broken branches on the roads around town too.
 
1:36 AM
that sounds bad :|
 
2:19 AM
@Ahmad Silicon Valley is awesome
 
@Emmanuel are you working there?
 
Lol, I mean the show
 
Ah, I want to visit the geographical location one day but I agree, the show is awesome
 
user457812
I expect the place to collapse in on itself, given that what it's done to California is unsustainable.
 
user457812
They've ruined their own little habitat.
 
2:31 AM
not to mention that it is on a fault line or two to begin with
 
@emmanuel just bing watched the first 4 episodes o.o
agree, really awesome
but now I'm tired lol
 
2:54 AM
just met someone who has a Android Wear watch...I"m definitely jealous.
 
3:12 AM
1
Q: MyApplication's method returns wrong value

M D PI have an Application class like so: public class MyApplication extends Application { private static boolean FOCUSED; public static boolean isAppFocused() { Log.v("@@@@@@ isAppFocused", "called"); return FOCUSED; } public static void appResumed() { Lo...

Does this sound like the OP needs to use a BroadcastReciever instead of a flag?
I don't know much about BRs, so I'm not sure how to answer.
or perhaps notifications?
 
3:31 AM
Does a Service and an Activity from the same APK share a process?
 
3:48 AM
apparently no
 
user457812
4:19 AM
Power's still out. Woo.
 
user457812
I might temporarily lose my commit streak.
 
5:27 AM
morning
 
5:58 AM
morning
 
6:55 AM
morning
 
7:21 AM
o/
 
7:43 AM
Ahmad did you see updated version of Google play
They are rolling out updates
 
7:59 AM
when I put a web query on another thread like this, how do I merge the result back to the main thread to update the UI?
 
Instead of doing like so
Use AsynTask
Where you have a callback to do network operation and to update your UI
 
I have tried it ... couldn't get it working properly with the https with authentications
I use AsynTask for normal web queries
 
What problem you had when you were using AsynTask
It should work
 
8:23 AM
Morning
 
user457812
 
user457812
Cat, sleeping on pillow.
 
user457812
Also, power is still out.
 
do you use your cat as a heater in winter?
 
8:39 AM
Morning
 
user457812
I don't really need heating in the winter. Just insulation.
 
good morning
 
@TGMCians access problem ... can't remember the exact error message, but it was something along the line of access denied or something
 
morgen
 
nothing beats the idea of warm your cold feet on your warm cat ... that is if your cat doesn't maul you first ...
 
8:54 AM
I accidentally clicked on tab with chat...
hm... don't want to quit but also don't want to see unread messages notification. What do I do?
 
user457812
I don't like catfoot. Leads to sweatfoot, which in turn leads to trench foot.
 
user457812
Trench foot is a very bad thing and still a concern due to how easy it is to ignore the toxic bacterial hell brewing in your socks and shoes.
 
well, your hygiene is almost always compromised when you sign up to a pet like a cat or a dog
or even birds ...
small dose of no life threatening bacteria is good for health @_@
 
user457812
Shut your face about birds ಠ_ಠ
 
user457812
Birds are superior to humans.
 
user457812
9:05 AM
We cannot hope to beat them without full body cyborgization.
 
user457812
Alright, time I slept.
 
Is it awful to say ... may bird flu be with you? ~_~
 
10:00 AM
Hello
 
10:21 AM
Anyone know how to do the following without having the view behind it active?
43
A: How do I create a help overlay like you see in a few Android apps and ICS?

CommonsWareLet's assume you ordinarily would call setContentView(R.layout.main), but on first run, you want to have this overlay. Step #1: Create a FrameLayout in Java code and pass that to setContentView(). Step #2: Use LayoutInflater to inflate R.layout.main into the FrameLayout. Step #3: Use LayoutInf...

Right now the view behind can be scrolled and used, which is a bit annoying, only want it to work after they dimiss the overlay
 
override the onTouchListener on the view in front and return true
 
haha, the gesture I'm telling the user about in the overlay still works though, I kind of like that
thanks!
 
lot of errors when building release version with AS O o
 
I didn't read the post... But you can consume the event on your front view, processing the event you got as paramter
 
having the gesture work is kind of cool though, they can test it right there and then
 
10:32 AM
Right now the view behind can be scrolled and used, which is a bit annoying, only want it to work after they dimiss the overlay , I don't get what you need then :D
 
well the the text/images dont' scroll behind it now
so to the user, the view in the background is dead
but they can still test the gesture which I am telling them about
 
and why you can't have both?
 
both as in, have the gesture not work either?
 
I am slow, can you try it again?
 
I'm so confused
 
oh people @+id and static
 
Suspicious method call; should probably call "layout" rather than "onLayout" [WrongCall]
 
lint?
 
Anyone had this issue with AS :/
i don't use it ?
and i have added this lintOptions {
abortOnError false
}
 
I don't use AS, sorry
 
10:56 AM
np
 
Lol the Aussie stuck in Shanghai managed to buy a ticket home lolololol
 
how?
did it got funded? lol
 
People on the bargain site spammed the AirAsia Facebook page with pleas hahaha
So they agreed to a $110 transfer fee
 
lol
 
It's funny, because the guy was living off Hungry Jacks power/wifi
 
11:07 AM
fixed i'm stupid sometimes
 
my comment or you can use the delegate pattern, his comments can you tell me more about the delegate pattern
does google work?
 
lol
 
I guess it is my fault. After one comment I should stop
Actually broadcast should register as soon as activity app starts. And above activity open up after three activity.
 
11:56 AM
 
haha. love this silicon valley series.
 
So... another plane crashed today
 
you mean the algerian?
didn't it disappear?
the article I read said they don't know where it is
weird stuff is going on this year
 
Reports are now saying it's crashed in Niger
 
ah I see
actually, wtf
 
12:07 PM
I'm going to blame climate change
Just because
 
how can all this happen?
just within a few weeks
 
Chance?
 
will my BroadcastReceiver go off when my AlarmManager goes off If I close my app?
 
it was bad weather
the plane crash
 
hey lads.
 
12:29 PM
o/
 
at work lol.
 
how's the work going?
you're at this pharmaceutical company right?
 
yeah, GSK.
work is going well thanks.
a lot of stuff to pick up as my job role is networky and I'm not really.
I'm used to just general programming and Android dev.
 
what network stuff do you do?
still java-stuff right?
 
network stuff should be always done in c
 
12:48 PM
not touching Java yet anyway.
bit of JavaScript, bit of HTML/CSS, bit of XML, bit of JSON, bit of Sharepoint and a lot of IBM DataPower Servers.
 
ah I see
 
1:06 PM
good morning
 
good morning
 
what is the proper way to convert byte[] to string, than back to byte[]?
I tried this: ideone.com/QTvOKf but it doesn't work as I expected
 
good morning
 
hello mister
 
o/
String has a getBytes() method I think
 
1:16 PM
Foamy, that's what I tried, but if you look the output, it's not equal to the input
 
1:27 PM
Dammit, I've set my listview to send a network request for more data when you scroll to the bottom but some of my listviews have only a few items so the bottom is always visible... endless network requests
 
1:51 PM
shouldn't be too difficult to just throw in a test in there, no?
but it can get a bit messy with list view footers
 
RED_, I think I have your issue fixed somewhere here. let me look for it
 
gah. fucking watched the first season of silicon valley within... errm?
14 hours ago, by Ahmad
I could watch this silicon valley series
14 hours.
 
:o
 
yeah, I'm a freak :|
back to coding.
 
1:54 PM
Foamy, I guess I found a way to convert using Base64 (which is better, bc I get a smaller string)
but if i have any problems, I'll save your code here
 
love Silicon Valley
 
i can fix my issue and check if the first visible item in the listview is position = 0 but that would only work for the first page
the second page could load data and on scrolling to the bottom of that, position = 0 is not showing, so it would be endless again
 
the show or the place, MrEngineer13?
 
the show
 
\o
 
1:58 PM
o/
 
Trying to cut my coffee dependency back again, but now I have a headache. Gaaaah.
 
I would really like to work in the bay area some day
seems like the most exciting place to be in for a programmer
 
Our iOS developer is going to work for Apple in September.
 
wow
there's a apple office in canada or is he moving to SF?
 
oh yea, for sure
 
2:00 PM
As an intern. So he gets corporate accommodation and stuff. Some of his friends got positions with other companies in the area that don't have corp accommodation. Looking at $2000+/month for a room. Not a whole place, just a room in a shared apartment. Ouch.
Oh, I meant he's going down to California to work at Apple there in September.
 
$2000/month for a room... what the f.
 
pretty great deal for him then
 
wow, fuck that
 
interns at apple are most likely to be hired
 
2:01 PM
my entire apartment is less than half that
 
RED_ implement AbsListView.OnScrollListener and then set listview.setOnScrollListener()
 
Yeah, my entire apartment is a little over half that. $2000 for a room is nuts.
I could get a room for $500/month here.
 
it's just crazy
but I feel like this bubble is going to burst
this whole thing around SF
 
total - 1?
I have something similar at the moment
 
not now, but some time in the near future
 
2:04 PM
if (firstVisibleItem+visibleItemCount >= totalItemCount) { loadMore();
}
I just need to block it when there may only be a few items and the listview's bottom view is ables visible
 
maybe if totalItemCount <= total?
then you don't load more
 
Yeah, it's pretty unsustainable. We're doing as much (if not more) on 1/4 the money we'd need to survive over there.
 
total and totalItemCount are the same thing though
 
oh wait...
in my app I had 2 totals, the one which counts the number of items i've already loaded, the other counts the "real" total of items that can be loaded
 
i feel like this is not solvable
ah
 
2:10 PM
if the amount already loaded is equal to the real total, do not attempt to load more
that will work if and only if you know the maximum number of items
 
each request for me is 10 items, so I could check the request, see if less than 10 appear and then stop loading
 
no
because the last request can return 10 items too
 
true
 
well, of course you can make another one that returns 0 and stop after that
but that's not the best way
 
but I don't mind it doing one more network call
yeah
i just can't see another solution for a list that could either have lots of data, or barely any
depends on the people we build it for
 
2:40 PM
Can anyone check this 5 lines and tell me why the arrays are not the same length? pastebin.com/PM7WS2zA
 
hmm weird
 
what happens if the string contains control characters?
 
doesn't shared prefs use .commit() ?
 
it does
 
Android Studio told me to replace with apply()
some performance stuff, I guess
 
2:45 PM
try commit and see if it returns true or false
 
ok
 
or try printing the strings both times to see if they appear the same
 
ok, building
 
there shouldn't be a difference
it's basically the same
 
commit returns true
damn... the strings are the same
 
awesome
 
this one's good too: try.github.io
2
 
Australians...
 
finally, I guess I got this
 
3:07 PM
what was the problem?
tim tam slam 0.o
what... ?
lol
 
econding
brr
 
no, I did not guess it
I made progress, but not done yet
it's something about charsets
 
aha
 
lunch time
today I'm having Pastel
brb
 
3:17 PM
later Guilherme
 
3:42 PM
hi
 
o/
 
Ooooh so they had a Tesla outside the Google offices.
 
hey there carl
 
\o
 
It was pretty flash.
 
3:48 PM
in Toronto?
 
nice car there
 
which brand ?
 
if anyone haven't seen updated google play store app. this is for you
 
In Kitchener-Waterloo.
 
Looks cool!, TGM
 
3:54 PM
awesome animations, everything looking good.
 
will have to update then.
 
it doesn't look like material design at all
i'm sure the animations are but no z-axis stuff
 
Would love one of those Teslas. Don't have many charge stations around though :(
In Canada, anyway.
Europe looks to be covered with them though.
 
hmm
 
4:01 PM
hopefully by time you need a charge your at a station lol
 
That's the model S right?
that car is so awesome.
 
i know
geez
 
does anyone know if there is a library that makes it easy to implement listview with rows that can be swiped to remove them?
 
didn't save a link , but yes I came across a few
 
4:04 PM
there are a few, found a good one... once
i forgot the name
android-arsenal.com willl have it
 
foamy:
 
you know... this QR Code
the one there
on the screen
 
haha :p
 
lol
oops
refresh that page
 
user image
3
 
4:07 PM
heh
 
wat tha
 
better than failing to fail
or pressing cancel and then seeing "Canceling please wait" for 30 seconds
 
O_O
 
Apparently Roman Nurik released some sample code to do it
but it was 4.0+ only
so naturally Jake Wharton has edited to support older API lvls... github.com/JakeWharton/SwipeToDismissNOA
 
I was just going to link to that
how awesome is that guy?
 
4:10 PM
I'm starting to buy into the theory that he isn't a guy at all
but some kind of sophisticated AI sent from the future to make android development easier
 
took the words right out of my mouth
I hope he gets time to port material design back to 1.0
lol
 
Which will accelerate the advancement of technology by humans, therefore bringing itself into existence sooner than planned.
 
so you're giving in to eski's and my theory?
Jun 7 at 23:28, by Ahmad
I say Jake Wharton is just a code name for a 10 member team from China
 
10 members at least
 
I'm thinking AI from the future seems more plausible than any amount of humans.
 
4:12 PM
they probably fuel themselves with waffles and unicorn blood
what about 10 AIs from the future?
 
hmm
 
Announcing MaterialSherlock v1.0! https://github.com/JakeWharton/MaterialSherlock/?troll=true
6
jk jk
this time google will back port it
 
heh
troll=true
 
they said it's going to be backwards compatible
let's just hope they actually do it
 
only some stuff, like the elevate="" thing i bet
 
4:14 PM
haha
i hope so too ahmad
z-indexes must be used!
 
TROLL EQUALS TRUE.
 
animations suck, they better backport that
it would make things a lot better
 
yea, i just started to use them more now
 
oh yea, animations are going to be nice
 
4:36 PM
I am wondering why this answer got 26 upvotes, There is no function "findViewByID(id)" for an alert dilaog AFAIK :
26
A: android : how to align message in alertDialog?

jeevamuthutry this AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("My Title"); builder.setMessage("your message"); builder.setPositiveButton("OK", null); AlertDialog dialog = builder.show(); TextView messageText = (TextView)dialog.findViewById(android.R.id.message); messageT...

Oops I am mistaking , there is
 
o/
 
you should be able to get the dialog, then get the view from the dialog etc
hey codeMagic!
 
Heya Magic :D
Yeah! that way I'll have to do, Kabuto
 
4:53 PM
gradle is so dumb
my gradle files didnt change at all
and it went from compilation working yesterday to failing today
 
#studioProblems
 

« first day (1377 days earlier)      last day (3563 days later) »