The autoinjector keeps the needle tip shielded prior to injection and also has a passive safety mechanism to prevent accidental firing (injection).
Another design has a shape and size of a smartphone which can be put into a pocket.