« first day (1684 days earlier)      last day (3256 days later) » 

7:00 AM
I didn't have the problem, I always google my way to it when I need it, it was ADG ;)
but Sarge was saying both worked, but meant different things, not very helpful comment ;)
 
ah, sorry ;)
 
replaceAll returns the modified string, so take it in variable and print if its works
 
@SargeBorsch have you finished with you in-app purchase tutorial ?
 
nope… I was busy doing many other things, including finishing an application, flashing my phone, helping with some juniors' problems and so on :(
there are a lot of topics which deserve some writing actually
but the time is very scarce
 
7:22 AM
Ahh ofcause as Dharmendra said, it is because x doesn't change, but replaceAll returns the string.
you have to do 'x = x.replaceAll("\\s+","")'
 
@SargeBorsch ok waiting for that post, it would definitely help various developer who are working over in-app
 
@netpork any luck yet ?
 
\o_O/
 
7:35 AM
\o
 
a short question into the room: when you use a loader in your fragment, how do you make sure the loader does not send results to your fragment if the fragment is gone?
I see two ways to do it: either stop all possible loaders in onPause() or check in onLoadFinished the state of the fragment
 
I check for some Fragment related flags
like isAdded()
 
the second way will keep fragment in memory while the job is running
if it's a network request, it can stuck for an indefinite amount of time
 
hm...
so basically both solutions would be the best way
 
I usually just use rxjava and unsubscribe from results in onPause or somewhere else when it makes sense
 
7:38 AM
well loaders are async, so if you try to stop in the middle of the loader's execution you have no guarantee that it will be really stopped
 
I would like to stick with Android capabilities :D
well I do not really care (at the moment) if the loader finishes or not. I just want to prevent that it populates data to a non existing fragment
my loaders are mostely read only from database, so nothing critical
 
then the flags are the solution
 
I'd check if the fragment in onfinished.
 
if (!isAdded() || isRemoving() || isDetached()) { return; }
 
I just had isAdded as check, will use your if and see if I can get some exceptions on monkeyrunner :D
thanks!
 
7:41 AM
yw
 
btw: if I never used monkeyrunner, how to get started?
 
it is a commandline tool in your sdk
 
ah, cool. went googling
thanks
 
you can define some params like amount of clicks and if it should stick to your package or not
 
stick to my package — that means, not open other apps?
 
7:44 AM
yeah or stop if opened (not sure)
I really like it when AS tells me that it can simplify my if statements and then creates an unreadable mess with multiple negations.... yeah totally simplified!
 
lol
I usually get the opposite, though (but rarely need this anyway)
 
it often is correct, but it gets confusing if you return false in your if statement, because your if needs to be negated which often results in unreadable stuff starting with !(...). Best thing if you have a negation at the beginning: !(!(something)...)
 
\0
 
\o
 
is it annoying that even with screen pinning, monkey does change various system settings (like volume, DND, display brightness, …)
and my app survives stupid monkey test — but I guess it's needed to write specialized scripts for monkeyrunner, instead of just running monkey to catch something with bigger probability.
 
8:00 AM
o/
 
Ever tried Monkeytalk?
it is nice UI testing tool, it records the steps in monkey-scripts and you can just re-run them.
one script runs for both, android and iPhone
 
this is the next thing to try, yes
 
there are drawbacks in monkey-talk though, but it good.
 
hmm monkeytalk looks powerfull :)
 
8:18 AM
Vera, sounds good. we definitely should try it
 
but anyways, who uses that, testing is for people who can't write proper code, ARE YOU WITH ME? :-P
3
 
I am not
 
Its a joke, get onboard ;)
 
I won't
 
onboarding
 
8:21 AM
and the ship sank :P
teases Warren
 
I can swim... :D
 
Hello there
 
Hello here
 
6
Q: Add Server Certificate Information to Trust Manager Android Programmatically

Manohar PerepaI am new to this SSL and X509Certificate Concepts. What all I need is, Is there any way to get the Certificate Information from a given Url For Example: If User has typed https://www.google.com then I need the Certificate Information for that Programmatically. Edit: Finally, I got the Certifi...

Could anyone please help me on the above question ?
 
8:38 AM
I have one freelance android project if anyone interested ping me.
 
@HimanshuAgarwal: yes
@HimanshuAgarwal: interested
in project
Could you plz have a lokk at that question @HimanshuAgarwal:
 
@ManoharPerepa sorry don't know about that, wait for someone who can help you for this.
@ManoharPerepa ok cool can you share your contact detail to discuss further?
 
hop hop hop o/
 
@HimanshuAgarwal: perepamanohar@gmail.com. You can contact me on this email id
 
8:53 AM
@ManoharPerepa ok
check your hangout
 
@OcuS so, did the beers help with yesterday's troubles ?
 
@ManoharPerepa @HimanshuAgarwal Read rules, stop ping
 
yes, Redwarp ;) we're gonna use webviews :D
that's a deep change but it'll help for the future of our solution
 
What ya doing Ocus ?
 
9:15 AM
an advertising SDK
 
Webviews are heavy though
 
Warren, are you still the same fellow who is particular about everything?
 
yeah, but at some point, we'll have to provide html ads, so instead of getting crazy with the support of animated gifs in java (which seams a huge pain in the arse), we'll let the webview handle it
 
You sound like Sheldon Cooper from Big Bang Theory!
 
Sheldon Cooper is a fictional character, human beings like that does not exist
 
9:19 AM
thats why I said, "sound like"
 
who is sounding like that?
 
OcuS, what's the problem with gifs do you have?
 
@VeaceslavGaidarji well, animated gif and Android is a bit of a pain
 
ok, but why? What's the exact problem?
 
well, right now I just have a ImageView, it displays only the first frame of the gif. I looked for an easy way but, it seems there are none (or none which I trust)
 
9:31 AM
hmm, there is a bunch of libraries which provide you enough powerful API for gif images in Android
 
If you know a good one, just point it to me, I'll have a look
but we'll stick to our idea of the webview anyway ;)
 
yeah, no problem
just asking, because I found it interesting :)
 
@VeaceslavGaidarji personally I'd be interested in a library allowing animated gif to be treated as drawables
 
I thought you've tried already different libraries, and don't suit, and then you decided to go with WebView's
 
I found a few ones but it was not flexible enough (like, you couldn't set the time of animation, if, let's say, you wanted to display the gif as it would look at second 5)
 
9:35 AM
fork and PR :)
 
webviews will just allow us to skip some steps in our planning because we're 100% sure that we'll need them at some point
 
yeah, weview's are good but laggy :)
 
Morning Guys
 
@Redwarp I've just received notification about your library (github.com/redwarp/9-patch-resizer), good job man
 
@VeaceslavGaidarji haha yeah I could ^_^ but for me I just wanted to create an animated wallpaper to display a few cool animated gifs I saw on deviant art, so it should take too much time. I ended up using a solution that can create memory leaks, but as I never release my animated gif file, it's not an issue
 
9:37 AM
they're laggy but it's just to display some "poor" html for advertising, so we don't really care
 
@VeaceslavGaidarji thanks ^_^
 
we're lazy, and we want libraries which make everything for us :)
 
IMO there are two kinds of good devs: lazy ones, and cavemens ^_^
 
for iPhone people, they want 'properties' to set and make things easy..
and then the client will bug me saying, "Can you @#$% yourself to make it look like iPhone?"
 
@#$% that client
 
9:46 AM
everything, from TextView, navigation drawer, buttons, everything was customized by me in last project.
 
Warren - the gif paster!
 
I could have finished the app in 15 days, but then I handed him a bill of 45 days to bug me!
and took all my time and money.
Just to make the app look like "iPhone"
 
Vera, stop working with dumb clients
 
my boss took that client
I am not a free lancer.
I do a job.
 
9:49 AM
talk to your boss. Making stupid things will bring additional problems not just for you, but for your boss too
 
warren, that is dangerous even in games
 
if your boss is also that dumb. maybe you should leave that company, IMO :)
 
He goes behind money. Lets not boss-bash.
Yeah, I got a good raise though, + challenging. The things I never thought I would do were done!
 
@WarrenFaith is that you ? ..P
 
So, my concepts became more clear.
Warren doesn't like being buzzed @dhams..
 
9:51 AM
I would never reached the top of that :D
 
now you will get a scolding!
 
one ping is ok... it is all about frequency :D
 
got it!
 
@Vera why dont you ask one Simple SO question and wait for answer
 
I've done that!
 
9:53 AM
Good . All the best !
How many of us gonna Attend GDA of Google i/o 2015 ?
 
I wish...
I wish I was sent to the Google I/O to begin with
 
I wish I could!
But I live in India.
 
GDA ?
 
Good developer Academy
 
I'll be there in 2019 (if GDA is still alive).
 
9:57 AM
haha :P
 
Here in London we are going to attend that , we GDA here .
Will keep posting here for you guys
 
I just have read that in India is at the moment really hot, like more than 50C
 
Oh that too high
 
yes netpork.
It is!
 
10:02 AM
many people are dead due to heat
 
50 is unrealistic
 
he lucky he gets to take a bath. Few regions don't have water
 
that is so unfortunate and tragic
 
oh hey vera!
haven't seen you for a while
 
Ahmad ~0~
 
10:03 AM
50C ?? wtf
insane
 
yes, I was busy!
 
50C? o.o
ohgod
 
vera, what is the temperature in your town currently?
 
@Emmanuel LOL. That name is even better.
 
Hi all
 
10:15 AM
let me check the weather app ;)
i am sitting in AC 23C
 
http://i.imgur.com/TnwgTqK.png
btw, anyone knows what this line is all about?
 
its 39C
 
melting :|
 
nope, sweating! ;)
we enjoy pineapples, coconut water, butter milk, mangoes
and, we are adopted this temperature!
 
10:17 AM
while we in ljubljana have only 17C currently
it suppose to be much more in this time of the year
 
anything below 28C, i wear a sweater!
 
LOL
It seems like summer here
 
@work, I carry a small jacket, and sit way away from Air Cooler
So, if you find someone in sweater this summer in your town, its probably me :)
 
Lol 28C is summer here as well
omg I want mangoes
 
10:37 AM
Need to add that request in Android bot command . lol
 
10:48 AM
Two engineers are meeting for lunch. The second arrives on a bicycle that the first doesn't recognize.
"Where did you get the bike? " the first asks.
The second explained, "It was the weirdest thing. I was walking over here when a beautiful woman rode up on the bike, hopped off, tore off all her clothes and said 'take what you want!' So I took the bike."
"Good call," mused the first, "the clothes probably wouldn't have fit."
 
Haha funny
 
11:02 AM
friggin fragments#
 
have some..
 
106 likes
 
thanks :)
 
hee, not fare! I want mangos now!
 
have some
 
11:10 AM
I just might ^_^ was off for lunch, I'll see if there are some good looking ones at the supermarket
 
redwrap..where are u from?
 
france
 
@user3383787 Rejected for default username
 
user image
3
 
ok
 
11:14 AM
@dhams that's cool
 
one mango here costs 1€ ;_;
why does it have to be so expensive
 
because the guy on the mango advert has to turn the mango over every day
 
disappointed abt English , number three language .
Chinese , Spanish and English
 
That's probably only for native speakers.
 
Ya true
 
11:24 AM
greetings!
is 1 euro expensive for a mango?
 
o/
it kinda is, no?
I mean I want mangos. every day.
 
Guys, Is it any benefit to write a loop in reverse order? like from top=>ground?
 
hm, now I can not recall when was the last time I have eaten mango, if ever? :|
 
for i=count-1;i>=0;i--
 
maybe, if you use while loop
in javascript there is a benefit for sure
 
11:32 AM
cant see the advantage unless you needed a list to output in reverse order, or an array or something
 
nope, you can as well calculate the "reversed" index inside the loop (count - i - 1), and a good compiler/JIT will make performance the same
 
so basically: use the enhanced for loop if possible
 
"enhanced" for loop doesn't buy anything if one needs an index also
 
11:36 AM
Defiantly, reverse loop gives better performance than forward
 
the performance test is done wrong @Dharmendra
it's even done wrong in many ways
therefore it's not OK to derive any conclusions from that "benchmark"
 
yeah, the linked articles is bullshit
just read the comments
 
the measured code must be in a method and that method must be JITed
for ensuring the JIT work, one has to make clear what's the compile threshold of the JVM, and make "warm-up" with at least that number of method invocations
and yes, the code is buggy also
 
also: java != android, so any benchmark should be done on an android device
 
I think, this message chat.stackoverflow.com/transcript/message/23534662#23534662 is not saying about Android. But it's true if the Android is the target.
 
11:42 AM
I just assumed the Android context as this is an android room :D
 
new Date().getTime(); is also suspicious
 
Yeah, thats true, I did not read the comments
Loop has some problems
 
because (if this is not heavily optimized) there's a memory allocation that can trigger GC, which will offset measurement
 
the syso call is also inside the measured time
 
yeah
 
11:46 AM
and the new Date() object creation for the "endTime" as well
the biggest issue I see is that he did only run this once...
 
JIT also matters. If he runs it many times, but without warmup (starting the process every time), he will probably not see the optimized performance, only "initial".
unless the Java implementation is AOT (like RoboVM)
or like ART
 
Could someone give me a hand with fragments pleeeaase
with a cherry on top
 
Ace - King
 
is there anyone going in I/O 15 in CA?
 
12:05 PM
no sorry
is there a fragment expert in here ? ha
 
matty what help do you need on fragment?
if you are good with Activity, fragments should not pose an issue!
 
thank you. I have an activity in which i want 2 fragments, and be able to switch between them. There is a spinner in the first fragment which effects what is shown in the list of the second fragment.
 
@Vera there was no mangos at the store
 
Use this as reference: github.com/xxv/android-lifecycle
 
12:10 PM
i detach, update the arguments and then reattach
 
matty, use please pastebin or gists
 
sorry
 
that's crazy ahmad
 
I know right?!
 
i wish to switch between fragments, but update the args of the second fragment.
so i detach the second fragment, if already added to the fragmentManager, then update the args, then attach again
but when the fragment is attached again, the new args are not being passed to it
 
12:16 PM
matty, you should remove the fragment and add it again with new arguments
personally, I don't use "detach()" method
 
ok, ill try that now thank you. If i remove the fragment, do i then need to do checksFragment= new ChecksFragment(); ?
or does the fragment object remain intact and ok to use again?
 
no, you have to create new fragment
how often do you switch between fragments?
 
@Redwarp there is no summer in France :P
 
maybe there is another solution, more suitable in your situation and adding/removing fragments will be too expensive
 
No summer no mangoes :P
 
12:20 PM
basically, you select a vehicle, then go to next fragment to see the checks for that vehicle, so they could be switching repeatedly
 
We usually import summers through planes ^_^
 
haha..
I've never tasted fresh blueberries.
Have no clue how they taste.
 
too bitter for me
 
then it should work for you, matty
 
We get dragon fruits, kiwi, strawberries, cherries etc.
but no blueberries, blackberries or nice raspberries.
 
12:22 PM
@Veaceslav thank you for your help.
 
They taste like blueberries, mostly. Which is odd, as most unknown food usually tastes like chicken
 
India has variety of apples - wood(elephant) apples, ice apples, rose -apples, apple-apples (green,red,swiss etc)
pine apple :P
 
you're welcome. it should work definitely. but you could read about detach() method first for better understanding. maybe I'm doing something wrong removing fragments all the time :)
 
well. if i do remove(fragment) then try to update the bundle i get Fragment already active, so i assume the fragment object is still in use. do i have to manually null the fragment object, create again, then add again?
 
India has Bollywood as well, I love it
 
12:25 PM
no, you shouldn't explicitly nullify the fragment. seems like your fragment object creation is wrong
 
custard apple, java fruit
 
could i please put the whole class into a pastebin, and if you dont mind having a quick scan over see if theres anything obvious?
 
I'm limited in time today, preparing application for release. sorry :(
 
no problem, thanks anyway
 
fuckyeah bollywood!
I'ù using a mac now, macs are funny
 
12:35 PM
will some one please re-write my app more efficiently haha
 
Make it public . lol
 
@Moinkhan Welcome. Please read and confirm reading the room rules before speaking
 
hi cM
 
Good morning, all
hey, matty
 
yes! I remember the day when I was accepted and read the room-rules!
must be an year ago or so!
 
12:46 PM
hi magic
 
yo, miva
Are we all having a great fucking day?
 
8. Only codeMagic is allowed to buy and drink ass-Bourbon. Everyone else should know better.
when was this added???
i just finished an ass-Bourbon!
 
and how do you feel after?
 
tipsy
 
swearCount++;
 
12:55 PM
Morning
 
morning, neighbor
 
or fuckCount++;
 

« first day (1684 days earlier)      last day (3256 days later) »