« first day (1187 days earlier)      last day (3752 days later) » 

7:00 PM
hi everyone
 
most use would be:
 
what's the benefit to hacking siri?
anything big come from it?
 
Hey carl
 
Ok Google, find girlfriend
8
 
It has a lot of benefits RED_
People built their own home systems around that
 
7:02 PM
ah that's cool
 
Siri, turn off my lights, open the garage
 
and start my car *
 
@Emmanuel only one?
 
?
I should go back and work on my home automation project...
 
The API limits it to only one per device
;)
 
7:03 PM
lol
 
I introduce to you, BRAD:
(I didn't develop this)
 
It's my leaving time from here..Going to take rest now.
 
That's truly evil
 
cya
 
Playing Justin Bieber
 
7:06 PM
See ya TGM
 
omg so tired.
sleeeeeepy
 
this is funny
(sorry neb)
 
shes brushing her teeth isnt she?
I know what happens when tooth brushing goes on.
 
nop
trying to avoid falling asleep in class is probably one of the worst,yet avoidable, feelings
 
At 1:46 I had to pause and take a break or I was going to lose it
Which wouldn't be good since there's visitors in the office :/
 
7:15 PM
loool
O_O
 
I think I'm broken, I didn't think that vid was funny
 
Don't feel bad, Carl, my sense of humor is a little different than most (apparently so is Emmanuel's...haha)
 
ohhh come on...
it is not extremely funny
but somewhat realistic in the sense that we all have been bored in class
 
Just some of the shit he was saying was so stupid that it cracked me up
 
yes that is it :)
 
7:28 PM
I had to strugle too many times to not fell asleep
 
it sucks!
 
Mostly in German, Latin and French. I'm not a language person.
 
For me it wasn't the class so much as the other students...
When you have people stuck on something simple or asking the most ridiculous questions, that's when I would drift off
 
I learn't nothing when I took German
apart from how to say I want some tea
the only thing a british man needs!
 
And I learned nothing when I took french :p
lol!
 
7:33 PM
Latin, why Ahmad?
I learned nothing when I took English
lol
 
Because I thought by choosing latin I could trade it off for french
 
I used to hate English back when I was in elementary school
 
Because we had to have at least one of those
I had both for a while
Stupid me
 
Why didn't you people learn anything?
 
languages are annoying to learn, takes dedication I reckon
 
7:35 PM
^
 
I learned a lot when I took Spanish. But I also already knew a lot, maybe that helped.
I started learning Italian on my own and was getting far but then got distracted
People from the UK say, "I reckon"?
Huh, I learned something today!
 
Indeed
 
Sounds fancy
 
Really?
Fancy people aren't the ones who say it around here. Lol!
 
7:41 PM
I just thought so :|
 
this sound interesting
 
Argh how fo I stop Blackbery from sending me a monthly "paycheck" of $3? Their emails are getting annoying.
 
7:55 PM
ActionBar!
 
charge your phone, it has no battery left
 
I'm not sure about the gray gradient
 
bwahaha
action bar conquered
gradient isn't bad to me
 
That's not a gradient
 
Just looks strange because it's previously been completely black.
 
7:57 PM
I like it. Maybe just make it a tad darker...
 
But yeah, I would go with a dark Actionbar
 
Mine is orange!
But its not really an ActionBar either. Custom action bar
 
hmm, orange with white buttons :D
 
better than previous a bit
 
7:59 PM
I only have two buttons though (back arrow and overflow) then two clickable TextViews
 
@kabuto178 which is better?
 
the grey one
 
p.s. The link is a screenshot for my app as it is currently listed on GP.
 
But... that's an Actionbar as well
 
I agree, I like the grey much better
 
8:02 PM
What about with a black actionbar?
 
^
better
 
I still like the grey
 
hmm...
I think I like the all grey, too
 
Nah grey is too boring
There has to be some kind of contrast
 
I need to colorize my app anyway...
 
8:04 PM
That's why I would make the grey darker
 
that could work
so that the buttons show up more since they are white
 
The grey one was just android:theme="@style/Theme.AppCompat.Light"
 
Why do they have to push the menu button to get started?
 
time for custom blends of color hehe
 
@CarlAnderson Because I just added the action bar and didn't fix the wording
 
8:07 PM
ok
 
Talking about which...I want it to jump to a different screen if there is no data in the database.
Is there any problems with calling startActivity() from the onCreate() of my main activity?
 
No
 
cool
 
I should get into baseballcards ^^
 
I used to be big time when I was younger
Getting my oldest son into them now
 
8:11 PM
buy him my app!
=p
 
I was actually considering it! I haven't looked at it close enough
 
I need to trade a Ted Williams :P
 
Are you going to connect it to a DB to look up prices like with Topps or Donruss?
 
well, when you have a chance check it out.
 
I think that would be helpful
I will do that
 
8:13 PM
nope, all the data is entered locally atm
I eventually would like to see about looking up prices, maybe with Beckett or something
 
Yeah, Beckett, couldn't remember the name
 
fyi, the next release will allow the user to take a pic of the card. The feature will only be available in the paid version, though.
no OCR yet, but making a step closer to that.
 
What's the app called?
 
8:33 PM
I will check it out
 
cool
 
8:55 PM
0
Q: Android setContentView() appearing blank

Nick PetrynaSo when using some icons I have on my action bar, I change the content view to another layout. Now when trying to return to my activity_main.xml file, the entire thing appears blank. Any possible solutions to why this may be happening? NOTE: The changing appears in the switch statement when the ...

 
Ouch
 
I saw it before you posted
not good to call setContentView() more than once
right?
 
that's my understanding
As far as I can tell, it doesn't hurt exactly, but it's not the intended design, either
 
Yeah, I imagine there are some valid use cases, but I can't think of any cases where there isn't a better solution.
 
9:00 PM
gimme the codes pls
 
I want unicorns and rainbows... — Emmanuel 19 secs ago
 
I hate using PopupWindow.
 
wow, gotta wonder about 10 variables all with the same name except a number
lrn2array
 
yuck...
 
even when I only need to repeat something twice I often use a loop instead of copy and paste.
 
9:08 PM
I do not know much about code "prettiness" but this Activity is not appealing...
0
Q: Logcat gives AsyncTask do in background error. Why?

Robin Van 't SlotIm building an Android app where I want to search movies through the Rotten Tomatoes api and display them in a pretty basic ListView, with an image and two textviews for the movie title and critics consensus. I've had some difficulties, I've written some code but when I run it AsyncTask giving an...

 
hmm
so im adding a fragment to my activity as like a foreground view
the background is semi transparent so you can see the activity behind it
how do i disable focus on the old activity? like i can still scroll through it
 
so like a modal dialog?
 
ha! look at this
4
Q: Shouldn't there be an option for Fragments to retain click events within their view hierarchy?

EmmanuelAfter seeing a couple questions here on SO regarding Fragments "passing" their click events down to clickable Views in underlying Fragments, I recalled that I once encountered this problem. What is actually happening is that if a user clicks on a blank area of the top most Fragment, since its Vie...

make the Fragment's root ViewGroup clickable...
did it work?
it seems hacky, hopefully somebody answers with a better solution
 
so, one of the ways to flow through my app is from Activity A to Activity B to Activity C. But I'm finding that when Activity C is up on the screen, if I push the 'back' button, it takes me all the way back to Activity A. Any idea how/why this could happen?
 
do you call finish() on B?
 
9:22 PM
:-P
yeah
dumb
the Activity should be calling startActivityForResults
 
@Code-Guru yea i think so
 
Does anyone know how to open a new FragmentActivity from a fragment already?
You can't nest fragments so simple intent won't do.
 
user457812
Can't nest fragments?
 
the fragment is defined in the xml layout. Google maps.
oh. must be reading old stuff.
 
user457812
9:37 PM
Create a FragmentActivity subclass that uses the fragment and then just shove out an intent for that.
 
user457812
That way the fragment is hardcoded and there's no security issue like the one PreferenceActivity has.
 
user457812
Also keep in mind that actually using nested fragments is kind of a huge pain in the neck
 
I'm using a navigation drawer, everything is a fragment except for one page I want the user to go to, the FragmentActivity
 
godfuckingdamnit
this stupid thing keeps trying to shove gradle up my ass
how do i disable gradle forever and ever on android studio
 
user457812
You can't. It's made for gradle.
 
user457812
9:41 PM
That's the new Android build system.
 
user457812
If you don't like Gradle, use the command line or switch to IntelliJ.
 
user457812
For example, I use sbt for my build system, so Android Studio would .. actually probably be fine, but IntelliJ is better.
 
I didn't know about this way to of achieving a Gaussian Blur
Thanks nil!
 
im still able to build without gradle, it just tries to force it on me every time i load up a project
 
user457812
I didn't do anything gaussian blur related
 
9:43 PM
and gradle seems like it would take a long time to understand whereas this current system is very easy and works perfectly
 
user457812
People who find ant easy to understand scare me.
 
it was the section below "nested fragments" in link you posted
 
i dont use ant like with console and stuff
i just go into the project settings, add modules, and dependencies, etc
 
user457812
I've only used ant via a terminal.
 
its pretty straightforward
 
user457812
9:44 PM
I don't really understand how people can like GUI-based build systems.
 
it also keeps trying to add my project as a module
 
user457812
Man I love having 16gb of RAM.
 
user457812
The only swap files I have now are a 64mb one and a 1gb one.
 
9:56 PM
What good is a 64MB swap file?
and do you mean partitions?
or are you on your windows box now?
 
ah clever jmr i fixed it
solution forcibly remove every reference to gradle throughout the entire project
 
lol
 
user457812
I don't have a Windows box.
 
user457812
Mac OS uses swap files (as does Linux, though it's optional by default)
 
user457812
If you're on OS X, visit your /var/vm directory and you'll see what swap files you have.
 
user457812
10:04 PM
Also your sleepfile, if you're on a laptop
 
user457812
On Linux, I have a 4gb swap file and a 4gb swap partition. The partition has higher priority since it should theoretically be able to keep paged memory in contiguous blocks, making it faster. The swap file is the secondary one that acts as a backup, but it might not be contiguous since its space is managed by ext4.
 
user457812
That said, the swap on my Linux install won't actually be touched unless I've used ~15gb of memory first.
 
user457812
Since I turned the swappiness way down on it.
 
didn't know you could use swap files in Linux. I always just format a swap partition when I install and pretty much ignore it after that.
 
user457812
I did both so I could wipe out the swap file if I suddenly needed 4gb of space.
 
user457812
10:13 PM
Actually using a swap file is fairly easy. Just create a giant file, run mkswap on it, add it to your fstab, and use swapon if you don't feel like rebooting.
 
user457812
I'm not sure if it's necessary to zero the file, but the easiest way to create a giant empty file is to just read from /dev/zero, so you kind of get that regardless.
 
good to know
 
user457812
Oh, and obviously make sure it's owned by root.
 
agh round bitmaps
it looks like they only work if theyre a certain dimension with the code im using
 
well, one of my tests is broken by the changes I made for ActionBar...gotta figure out why
 
user457812
10:24 PM
Because dogs exist.
 
I felt so good when I found out that you can define rounded corners via xml
 
unfortunately, it's a test that someone else wrote, so I'm not familiar with the code.
 
@Emmanuel !
what?
how
 
user457812
Testing Android code sucks.
 
user457812
It's a pretty much actively hostile thing to test.
 
10:25 PM
@Emmanuel So how goes the Python?
 
25
Q: How do I set the rounded corner radius of a color drawable using xml?

Jay AskrenOn the android website, there is a section about color drawables. Defining these drawables in xml looks like this: <resources> <drawable name="solid_red">#f00</drawable> <drawable name="solid_blue">#0000ff</drawable> <drawable name="solid_green">#f0f0</drawable> </resources> In th...

 
@nil Yes, even with the Android JUnit and instrumentation stuff, writing tests is still painful.
 
it is going ok
 
still, it's useful. My existing test suite pointed out problems in my initial changes to add ActionBar to my app.
 
I was learning about decorators not too long ago
 
10:26 PM
so do you set that custom drawable as the background of the imageview?
 
yes sir
 
lets give it a go
 
this is probably better for you @JMRboosties
13
Q: How to draw rounded rectangle in Android UI?

murali_maI need to draw a rounded rectangle in the Android UI. Having the same rounded rectangle for TextView and EditText would also be helpful.

 
user457812
I just don't write unit tests for my stuff because I'm a lazy, horrible person
 
@Emmanuel im gonna try it with 90 radius
i dunno if that is what i need exactly but yea
yea, that isnt working actually
the bitmap isnt framed inside the background
so theres just a circle behind the square bitmap
or in my case rounded corners bitmap
 
10:39 PM
what are you trying to do, if you do not mind me asking?
 
just display a round image
ok getting there...
so basically 90 isnt gonna work
it needs to be derived from the image's dimensions
that makes sense
beautiful
i was being dumb
i was drawing a round rectangle with radius 90
what i really needed to do is
take half the width of the bitmap im drawing
and make THAT the radius
i was thinking radius in terms of the center angle like a dummy
 
ohhh
so it is working now?
using code?
 
yea
 
I think it should work using xml
use src to set the ImageView pic
 
using xml it was able to draw a circle as the background
but if you use background for the circle and src for the pic
the pic just pastes over the background as a square
 
10:46 PM
it shouldn't
try a larger corner radius...
 
one thing is that im using UIL for image loading
 
and set scaleType = "fitXY"
oh
 
11:27 PM
haha this is awesome
From the source: insults.js
lol
 
lmao
 
when I call FLAG_ACTIVITY_CLEAR_TOP and start the main Intent, does it reuse the previous instance, or does it create an entirely new instance?
it seems to be creating a new instance
ahh, looks like I also want FLAG_ACTIVITY_SINGLE_TOP
 
11:43 PM
those activity flags never worked for me, lol
 
really?
the CLEAR TOP is definitely working for me
 
well worked the way i wanted them to at least
 

« first day (1187 days earlier)      last day (3752 days later) »