upgrade to Alloy 1.0.0 -replace on with addEventListener
Sample tiapp.xml