Provided is an electronic device that is easy to use and that comprises: touch sensors (18A-18F) that are provided to a first surface and to at least a second surface that is not the first surface; a processing unit (20) that determines how the electronic device is being held by a user on the basis of detection results from the touch sensors and displays information related to an application on a display (13) in accordance with the determination result; and an allocation unit (20) that allocates functions to the touch sensors in accordance with an application to be launched.