Patrick Boos

Tokyo, Japan

pboos.ch

Age: 30

Swiss, developer, husband, father
Blog: http://pboos.ch
Twitter: http://twitter.com/pboos

Mar
25
answered Best way to check whether a certain exception type was the cause (of a cause, etc ...) in a nested exception?
Mar
17
comment Changing Android Device orientation with ADB
First you have to run adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0 to turn off the automatic rotation
Mar
3
comment Android Studio doesn't recognize Espresso classes
Not working well anymore on aar dependencies since gradle android plugin version 1.1. Reason is that it does not allow provided aar dependencies.
Feb
14
comment How can a remote Service send messages to a bound Activity?
Only problem with this answer is: It is only for a local service. But the question is asked clearly on how to do this with a remote service. But thank you anyway for writing this up. But maybe note that this is not the answer to the real question :)
Jan
29
awarded Good Question
Jan
12
comment Android: ScrollView force to bottom
This is needed only in cases where the layout has not yet been measured and layouted (for example if you run it in onCreate). In cases like pressing a button, .post() is not needed.
Jan
6
comment A better class to update property files?
That works great and keeps the comments there. Took the liberty to add some sample code :)
Jan
6
revised A better class to update property files?
added some sample code
Jan
5
comment How to lock orientation during runtime
@JiMMaR SCREEN_ORIENTATION_LOCKED is the best way for Android >= 18. But in case you target something lower, that does not work. I suggest using jp36's answer below.
Dec
16
comment Animate ProgressBar update in Android
should be ofInt ;-) and probably 0 to 100 (but you should setMax(100) on progreso to make sure. But otherwise good. Like it better than the other answers.
Dec
2
comment Volley Android Networking Library
Bad idea to do this. That library in there is 1 year old. And doubt it will get updated ;-)
Nov
24
comment Android ActionBar MenuItem LowerCase
@Mike: It worked with older support libraries. But somehow it does not work in 21.0.x anymore. I wonder why. Maybe they do not want that to work at all? Kind of annoying.
Nov
19
comment Get the current language in device
@gregm's comment is wrong. Just try it out yourself and you will see, that Locale.getDefault() will change when you change the language in settings.
Nov
19
revised Get the current language in device
adding what was mentioned in comment
Nov
19
revised Get the current language in device
This should be in the most rated answer. Since it gives more information than the original. This way people do not have to scroll down to the other ones.
Nov
14
comment neo4j ExecutionResult: Extract multiple columns (since javaColumnAs only works once)
Now I feel stupid :D Why did I not figure out that this would be the way to go :). Could even just get the first row and then get the columns.
Nov
14
accepted neo4j ExecutionResult: Extract multiple columns (since javaColumnAs only works once)
Nov
13
asked neo4j ExecutionResult: Extract multiple columns (since javaColumnAs only works once)
Nov
4
awarded Yearling
Nov
4
comment How do I use DrawerLayout to display over the ActionBar/Toolbar and under the status bar?
Instead of minHeight="?attr/actionBarSize" you might want to do layout_height="?attr/actionBarSize" because otherwise it might mess up the whole thing in landscape (where theactionBarSize is different than in portrait)
1 2 3 4 5