Are your sure that the S4 supports getPressure() ? Both getSize() and getPressure() are very device-dependent methods.
From a stackoverflow thread, here are some reports of how those values work on different devices.
As you can see, some have getSize() working but not getPressure(), some the contrary, etc...