Jason Hartley

New York, NY

jasonh.us

Android developer @ iHeartRadio

Feb
3
awarded Civic Duty
Jan
26
awarded Notable Question
Jan
26
comment Making a Location object in Android with latitude and longitude values
If you need a default value for a Location object and since you can't initialize it with a lat/lon, I suggest setting them in a static initializer, e.g. static { location.setLatitude(0.0d); location.setLongitude(0.0d); }
Jan
21
awarded Critic
Jan
21
comment google play service error
@ArL posted the solution. Sync and rebuild is not a solution, or even a workaround.
Jan
21
comment google play service error
This is a workaround (by using older versions), not a solution. The solution is to use gradle plugin version 2.0.0-alpha6 which fixes this problem, as answered by @ArL.
Jan
12
comment How to fix: "HAX is not working and emulator runs in emulation mode"
If you want to have more than one AVD running at the same time, the HAXM max RAM needs to be the total for all running AVDs, i.e. two AVDs @1024MB = 2048MB, so: $ sudo ./HAXM\ installation -m 2048
Dec
29
comment How to use ADB Shell when Multiple Devices are connected? Fails with "error: more than one device and emulator"
For an emulator, you use the IP and port as the id, e.g.: adb -s 192.168.56.101:5555 shell
Oct
9
awarded Famous Question
Oct
8
asked How to ensure app installed on SD card stays on SD card after an update
Aug
23
comment Why can't I install this downloaded APK?
Update: Stopping SFinder on my Samsung S5 solved the problem.
Aug
23
comment Why can't I press the Install button when installing applications from unknown sources?
Stopping SFinder on my Samsung S5 solved the problem.
Aug
23
comment Why can't I install this downloaded APK?
I was not running a screen dimming app, but I closed all open apps, then the install button become responsive. What worries me is that something was running a transparent activity, capturing my touch events.
Aug
17
awarded Autobiographer
Aug
2
awarded Nice Answer
Jul
29
comment What commercial/real world apps have been written using PhoneGap?
Not quite what I'd call commercial, but a nice example.
Jul
12
answered android.view.WindowLeaked exception
Jul
9
awarded Notable Question
Jun
20
comment How to uninstall APK (or execute adb command) automatically before Run or Debug?
This is the best answer.
May
20
awarded Autobiographer
1 2 3 4 5