A medicament delivery device includes a holding unit (5), a driving unit (7) releasably held by the holding unit, an activation unit (6) used to release the driving unit from the holding unit, and an injection unit (8) to be moved by the driving unit. The injection unit includes a hub (85) held by the driving unit, a cannula (86) fixed to the hub and a container (83) slidably connected to the hub. After the driving unit is released, the proximal end of the cannula protrudes out of the activation unit before the distal end of the cannula fluidly communicates with the container. The medicament delivery device is combined with an electronic device in an assembly. When a casing cap of the assembly is removed, the electronic device or an app in the electronic device or a function of the electronic device is automatically activated to wirelessly communicate with another electronic device.