1. A mobile device for providing a haptic function, the mobile device comprising: a vibration unit which generates vibration for a tactile effect as the haptic function; and a control unit which comprises a platform providing an application programming interface (API) corresponding to the haptic function and having a plurality of parameters, executes an application prepared by the API, determines a characteristic of the vibration based on the plurality of parameters set up in the application, and controls the vibration unit to generate the vibration having the determined characteristic.