Jason Hartley

Astoria, NY

jasonh.us

Age: 40

Android developer

2d
awarded Yearling
2d
awarded Yearling
Nov
23
comment How to fix unchecked call warning in Java?
"Use parameterized type of keys" is the correct answer and is sufficient. Telling the OP "You need to study generics" is condescending. If we had studied, we wouldn't need SO, now would we? I upvoted nonetheless. :-P
Nov
19
awarded Popular Question
Nov
12
comment How to resolve java.lang.NumberFormatException: For input string: "N/A"?
+1 for the integer pattern matching. I wasn't sure how to do a loop reading a line from stdin using a try/catch.
Nov
5
comment New Google Analytics SDK 4
Tolgay, I have TrackerName as a public enum in its own package that I import into MainActivity. Before organizing things into packages, I had it defined in MainActivity.java.
Oct
24
awarded Autobiographer
Oct
24
awarded Supporter
Oct
19
comment Website Loads Twice Unnecessarily
Rarst, when I tested it I, I put in the non-www url. It seems to redirect to www properly (this is the first thing that happens), then a bunch of stuff loads, then it loads the www url a second time, then it finishes loading stuff. I'm going to check the registrar to make sure all is in order, then the server configuration, but I suspect is probably something else, like an errant plugin, etc.
Oct
19
awarded Student
Oct
19
asked Website Loads Twice Unnecessarily
Oct
17
accepted Conditionally apply Android notification builder methods
Oct
14
comment Git - recursively add the entire folder
To recursively add the entire tree structure of the folder, the command should be git add --all :/
Oct
9
awarded Popular Question
Sep
29
awarded Scholar
Sep
29
comment Two Fragments in Landscape Mode Challenge
This is what I was looking for. I knew I was probably using fragments poorly. Using an interface for communication to and from the fragment and implementing it in the activity makes a lot more sense. Thank you.
Sep
29
accepted Two Fragments in Landscape Mode Challenge
Sep
28
comment Two Fragments in Landscape Mode Challenge
janos, these were great pointers. I've since implemented them all. I guess my only remaining question is, is there a better way to approach the two-fragment thing than the way I did? I'm still new to fragments, so I don't really know what is good form and bad form.
Sep
27
awarded Supporter
Sep
27
awarded Student
1 2 3 4 5