correct version check for getAlpha
fix crash on API 10