« first day (1779 days earlier)      last day (3186 days later) » 

12:22 AM
@codeMagic I thing that it's for highlighting when you are navigating with a keyboard, but I'm not sure either...
 
That could be. The documentation on that stuff is pretty poor, imo
< Boolean. "true" if this item should be used when the object is activated as the persistent selection (such as to "highlight" the previously selected list item in a persistent navigation view); "false" if it should be used when the object is not activated.
Great, you still haven't told me what "activated" means, assholes :D
 
12:39 AM
they should change the method name
 
Possibly. Or just explain exactly what that means because it's kind of left open for interpretation
 
 
1 hour later…
2:11 AM
I am not surprised by deez nuts 2016 running for elections
but i am really surprised by this guy
 
user457812
2:43 AM
.. I'm assuming that's a fake tweet 'cause the lack of awareness in it is too great.
 
user457812
On the other hand...
 
3:37 AM
I have a question no one will no the answer to that may seem selfish but is incredibly important to me.
 
3:50 AM
what is it?
 
I've spent the last eleven days with my girlfriend, some people look at us and say we won't last, I'm sure they do. The thing is, any relationship can last if you have a few things. Communication, dedication, willingness to do anything, trust... We have these things, we talk about the future, hell we even talk financially. I've been accepted into her family and her Dad, which of all people I expected to hate me, started calling me his future son-in-law and things of that nature.

Now I know you either are judging me, don't care, or possibly hope that I'm right when I say that I found the
 
Use Kickstarter ;)
 
Kickstarter doesn't allow funding of personal projects
 
damn
create a startup?
 
Last I checked.
Indiegogo Life seems like the right thing though
 
3:57 AM
seems legit
 
It's legit lol, just don't know if it's what I want
 
well you can always try
if it doesn't work out then you can search for an alternative
 
Hmm okay
 
user457812
4:36 AM
Get a better job?
 
user457812
Or find a job and move?
 
4:51 AM
I'm 15
 
5:12 AM
@Ahmad It just felt unnecessary to rewrite the app cuz I had more important things to do. But I did change all the icons, and it looks good enough. github.com/josephyoon/senotifier
 
 
1 hour later…
6:19 AM
lol @nil
 
user457812
6:51 AM
@TristanWiley Then I think you can survive waiting a little while.
 
 
1 hour later…
8:12 AM
Anyone on?
 
yes
 
 
2 hours later…
10:02 AM
Went to see some FPV quad races today. Man those things go fast
 
10:21 AM
user image
2
 
10:52 AM
nice Glitch, have a star
 
What do I have to change in my build.gradle when I move my project from eclipse on windows to android studio on mac?
Error:(1, 0) Plugin with id 'android' not found.
I am getting this
 
Personally, I'd just make a new project and move your source files + .git across. Then re-add the files via git and it should find their new location and track them again
 
11:11 AM
@Glitch nope, coles
 
11:22 AM
Do you think this is a game?
 
12:23 PM
o/
does onAttach(Context) function the same way as onAttach(Activity)?
 
an activity inherits from context
 
Assuming I haven't changed anything but the SDK level
 
yes should be the same
 
wait, so in Marshmallow you can attach Fragment to any Context?
Or, wait, can you do that now as well?
I thought Fragments are specific to Activities
 
they are
 
12:28 PM
so what was wrong with onAttach(Activity)?
 
o/
Ahmad, already wrote your story for meta.stackoverflow.com/q/303045/2367849 ?
 
12:49 PM
@Ahmad I'm pinging you so you can see what happens
 
nope not yet ;_; @cyg
didn't get anything jyoon
or do I have to be offline for that?
 
ok, please ping me when you post it
also, if you or anyone else has some feedback for my post, I'd appreciate it: meta.stackoverflow.com/a/303766/2367849
 
yeah probably
I'll try again and you can probably press "check now"
 
what are you trying to do?
 
test an app
8 hours ago, by jyoon
@Ahmad It just felt unnecessary to rewrite the app cuz I had more important things to do. But I did change all the icons, and it looks good enough. https://github.com/josephyoon/senotifier
 
12:53 PM
cool, I'll take a look
ah, too bad, Mac OS
 
hehe
there's a windows version somewhere on StackApps.com
 
ah, too bad, Windows ;)
currently using Linux only
gonna get a Mac later this year probably, though
 
maybe there's one for linux?
Ahmad just added a comment on one of your post and see if it shows up
 
found a chrome extension: stackapps.com/questions/587/…
 
ah got it this time
 
12:58 PM
cool so what do you think?
Icons are © and created from scratch pixel by pixel by me. I've put a lot of thought into it. BTW OS X HATES COLORS IN STATUS BARS.
225
Q: Column 80 - Plain Text optimised Stack Exchange

Mark Henderson Screenshot / Code Snippet About Browsing the existing Stack Exchange family of websites was OK in a text-based browser, but when you're stuck in a Linux shell with no way out and no other computers around and you just know you saw the answer on Server Fault last week, this is how you can fi...

 
Just me or AS changes directory structure with every update?
 
it's probably google who updates it
 
I've just spent five minutes looking for Manifest
 
1:46 PM
You might wanna switch to Project instead of Android?
@Luk
 
thanks, I'll look it up
 
 
2 hours later…
3:40 PM
Just about watched all of Silicon Valley season 2 this weekend.
 
3:52 PM
@eski it was amazing right
SV <3
 
yeah it's brilliant, just finished episode 8 which might have been my favorite so far
realized that they don't actually know Jianyang's name, but it's actually the province where he's from, en.wikipedia.org/wiki/Jianyang,_Sichuan
 
4:21 PM
LINE antivirus finally updated their malware detection s.t. it doesn't "detect" my app anymore
AVG still to go though they (falsely) claimed they fixed their detection, too
 
 
ask me later
 
Thanks eski, Ahmad
 
5:12 PM
o/
@Luke I figured out why my fragment wasn't working. Dumbest. Mistake. Ever.
Oh, nope, just kidding. I thought I did, it still failed.
 
hm
there isn't really much room for mistake
 
Well I forgot the .commit() at the end of the fragment transaction (but that didn't seem to matter, initially?)
 
it should matter
 
I also dug deeper into the callstack and while it did say that arguments are null it also had an error that it couldn't inflate the layout, I think I found an error there testing it now
Caused by: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class fragment
ughh
why
 
FragmentManager fm = getSupportFragmentManager();
Fragment fragment = fm.findFragmentById(R.id.fragment_container);

if (fragment == null) {
fragment = createFragment();
fm.beginTransaction()
.add(R.id.fragment_container, fragment)
.commit();
 
5:20 PM
The layout for this activity is the same as the layout for the other activity, so idk why it can't inflate this fragment
 
^ that's my code
 
oh you know what
you might be on to something, brb
Wait, why .add() and not .replace()?
 
this is called from the Activity
 
getSupportFragmentManager().beginTransaction().replace(R.id.transactions_fragme‌​nt, TransactionsFragment.NewInstance(account)).commit();
 
moment
 
5:23 PM
You know what
Looking at my old code I never called NewInstance() I just built the fragment from inside the activity but it shouldn't matter
But I had the exact same code from an old project, that worked: getSupportFragmentManager().beginTransaction().replace(R.id.account_transaction‌​s_container, fragment).commit();
 
can you paste your layout?
 
yeah I'll gist it one sec
 
I'm surprised that the error says fragment in lowercase
 
this is taken from my project
ignore the second file
and focus on onCreate() in .java file
 
yeah, what's "fragment"?
should be Fragment probably
 
lol
well, actually, it shouldn't
 
but it's not in my other activity :|
 
not?
 
if it's a container, it should be a FrameLayout
 
5:26 PM
I will try it for shits and giggles, though
 
Fragment is for layout fragments AFAIK
take a look at my Gist
 
No you get an invalid tag if you use Fragment
 
hm, reference says fragment is ok
Error inflating class fragment
that confused me
 
I think I need to do the if fragment == null check like Luke has
lemme see
 
I have added version with FAB in a comment
I'm not good with Gists
 
5:31 PM
:| ugh idk this shouldn't be that complicated I've gotta be missing something super simple
Maybe what's happening is
when it starts the activity, it creates a TransactionsFragment automatically, because that's what's in the XML. Then, it goes into onCreate() and gets an NPE, because the arguments haven't been set yet. So maybe inside onCreate() I need to check if args are null first
 
can you try stepping through the code?
I'm wondering, don't you have a stacktrace with a line in the .java code?
 
I can try, I'm not sure where I should set breakpoints at. I guess I could set one inside onCreate() and where I call newInstance() and see which one hits first.
Yeah, I get the inflating error on the line that calls setContentView and I also get an NPE in the fragment when I say mAccount = getArguments()...
I'm gonna set those breakpoints, and see which is called first.
I have a hunch the activity is creating a fragment before I'm replacing it. That would make sense, right?
 
yep
 
Yeah. It would. So I can probably just remove tools:context to prevent that?
in the XML?
Or should I adjust the fragment code to check that arguments != null each time?
It hit the fragment breakpoint before it hit my replace() method. God I knew it'd be something super simple.
 
removing tools: attributes won't help afaik, they've no impact on the app
I'd try Luke's method using a FrameLayout
 
5:37 PM
I'm still not convinced you need a fragment
you're reading my mind cy :p
 
You never need a fragment.
;P
 
I meant <fragment
 
I've seen people use FrameLayouts instead, what's the difference?
 
AFAIK, it's used for layout Fragments
i. e. those embedded in XML
 
I've only little experience with fragments but I always added them from code and not xml layout
 
5:38 PM
and automatically created
the easier, less-flexible way (e. g. can't have arguments)
and FrameLayout is barely a container
 
Well I need arguments lol
 
for a Fragment which is created from code
 
Well if it's creating a fragment automatically when the activity created, it must be using tools:context to figure that out. I'll try taking it out to confirm that, though.
 
Fragments are like any other Views when they are created from code, but they need a parent
FrameLayout is just that
 
What the fuck I keep getting obnoxious errors.
 
5:40 PM
Could you just try with my code?
 
android:name="com.example.app.TransactionFragment" is sufficient for that
 
There is a version with Toolbar and FAB, just change ids accordingly
 
Alright, I'll try it.
 
"Android has a dedicated XML namespace intended for tools to be able to record information in XML files, and have that information stripped when the application is packaged such that there is no runtime "or download size penalty."
 
user457812
Some people are very insistent on the cargo-cult practice of using monospaced fonts for programming.
 
5:46 PM
:|
I still don't understand the difference between FrameLayout and Fragment, but it worked, Luke.
 
REAL CODERS USE ALL CAPS
 
Adam, when you use <fragment, it's instanciated when the layout is inflated
 
fragment is really a fragment, and FrameLayout is just an empty space
 
and FrameLayout doesn't do that?
 
using, e.g., FrameLayout you have a container
 
5:47 PM
at least that's how I understood it
 
and take care of the instanciation yourself
 
That makes sense. Let me run one more test on this to make sure the arguments worked, but I think we're good.
Yep!
 
user457812
@Reno I KNOW, BUT THE SHIFT KEY CANNOT HANDLE IT.
 
Thanks!
 
You're welcome
 
5:48 PM
now stop using Fragments at all ;)
 
user457812
I have to go into the office for something like five hours today and I'm honestly not sure for what.
 
on a sunday?
 
user457812
I mean, there are things other people might need to do but I'm just kind of sitting on my stuff going "yeah I built a death ray what'd you do"
 
user457812
Yes.
 
So, in situations where I need arguments for a fragment to be created, FrameLayout may be better suited for the job because I instantiate it? If that's not important, a Fragment will work fine? Like in my app, I have a Fragment for accounts, but that's fine because I show all accounts. But when I show transactions, I want to show them for a certain account, so I can create a FrameLayout..
I understand.
 
user457812
5:49 PM
It's part of pushing something out into production, except everything I have is running in production already, so I'm just confused about my role.
 
I usually throw a hissy fit if they call me on a Sunday
 
Thanks, guys!
Luke, I'm gonna go upvote a random answer.
 
user457812
I usually just bring drinks and sit around.
 
:D
Adam, I guess you could also somewhat easily update a Fragment after it's created but dunno about details
 
user457812
Fragments are easy
4
 
5:52 PM
Yeah, but I think this was easier overall, and that's fine with me.
 
user457812
Just throwing that out there for whenever anyone says fragments are hard
 
I don't have too much trouble with them, either. I just didn't understand what was going on here, but now it's clear. I love this room.
 
In Fragment, shouldn't onCreate be executed before onCreateView?
 
I think it is.
 
nvm, my bad
 
5:55 PM
laters
 
o/
I'm only switching everything over to fragments because I want to be able to implement tablet layouts easily.
 
my app just randomly resets
wtf is this shit
ok, enough for today
 
lol
Fix my problem, cause your own ;P
 
ohh, if RuntimeException occurs in doInBackground and propagates to the top, it silently crashes the app
seriously, wtf Android
 
6:26 PM
http://i.imgur.com/xyA8PVY.png
Go home Android, you're drunk
 
user457812
 
user457812
↑ Behold, a proportional font used in code.
 
user457812
So much nicer than monospaced crap.
 
If the keyboard is open, a snackbar shows behind it. Is there any way to prevent that? A toast would appear over top of a keyboard, right?
 
user457812
snackbar?
 
user457812
6:31 PM
Holy crap where do I get this
 
lol
the design library, of course!
 
user457812
Ok, but the snacks
 
Nevermind, I know what I can do instead
 
user457812
Give me the snacks
 
user457812
If you don't want the snacks I will take the snacks
 
6:32 PM
I don't want the snacks. You can have them.
 
7:08 PM
Luke, we need to make you a circle.
 
7:27 PM
@nil, is that the regular condensed font you usually use or is it a different one?
I think I've seen it on your ST config before
 
8:06 PM
o/ Ahmad
....... Did Android name it Toast because it pops up?
 
@McAdam331 @Ahmad 1 best practice question...can I ask?
 
Sure, I can't promise I know the answer though.
 
hmm...what to keep in mind when increasing version names for an app?
 
You mean from 1.0 -> 1.1 -> 2.0 and such?
 
8:15 PM
Mostly it's personal preference, but I think most people tend to go based on how big the changes are. Let's say my app is 1.0.0, but I make slight modifications to the color scheme and layouts, in my opinion I would make that 1.0.1. If I were to say, add a whole new feature that wasn't there before and it's kind of a big change, it might be 1.1.0. Many people will say only to bump the first number for really big overhauls to the app.
From some discussions here, that's what I've picked up on, but I don't believe there's any standard regarding what you should/shouldn't do.
 
okay
suppose, I have version 1.1.8
 
Okay.
 
and now after a major change, what can be a better choice
1.2.8 or 1.2.0?
 
In my opinion, someone might say otherwise, but I'd try to use the second one. If it's a big enough change that you think 1.2.0 is better than 1.1.9, then do that. But don't bump just the middle digit. If you're going to bump it to 1.2.x, put the third one back to 0. Does that make sense?
 
hmm...yes...but I have seen some apps just bumping the middle digit,
one eg is whatsapp, I guess
 
8:21 PM
Hmm. To me, I think it helps with documentation. If I saw something like 1.1.7 -> 1.1.8 -> 1.2.8, someone might wonder where 1.2.0 through 1.2.7 are.
 
Sure. I got it
Thanks a lot for such nice info :)
 
But ultimately what matters most is you and everyone on your team understands and documents the version codes, so you can use them as reference on the different releases.
You can pick a plan completely different than what I just said, but as long as you and your team understand it, you'll be fine. :)
 
Okay, I understood now :)
 
Good luck! Is it a published app already? Can I get a link?
 
no, not right now...
Its a client app
 
8:23 PM
Well, still good luck then!
 
but I actually give it for testing to QA on daily basis
and send it to client on a weekly basis
2 mins ago, by McAdam331
You can pick a plan completely different than what I just said, but as long as you and your team understand it, you'll be fine. :)
I will follow this.
and thanks again :)
 
user457812
@Ahmad It's Input Sans Compressed
 
user457812
Specifically InputSansCompressed-Light
 
user457812
The main thing being that it's a proportional/variable-width font.
 
Haha, cool! I just wanted to emphasize that I think consistency among team members is more important than the numbers used.
 
user457812
8:26 PM
I've been trying to get everyone to start using semantic versioning at work.
 
user457812
This is harder than it sounds.
 
user457812
Anyway, off to work on a Sunday at 1:30pm
 
you are absolutely right.
 
Bye, nil!
I am off to a birthday dinner for my grandmother. Take care!
 

« first day (1779 days earlier)      last day (3186 days later) »