Simplifying Sensing and Coordination Tasks on Smartphones