Proof that inclusion in disconnected space cannot be null-homotopic This is a question related to a question I asked here.
I've been thinking about how to prove that if $A \subset X$ where $A$ and $X$ are disconnected spaces and $A$ is a (strong) deformation retract of $X$ and $i: A \hookrightarrow X$ is the inclusion then $i$ cannot be homotopic to the constant function.
I can argue as follows: If $A$ is a deformation retract of $X$ then $i$ induces an isomorphism on the fundamental groups. Then, because homotopic maps induce the same homomorphism on fundamental groups, this would lead to the contradiction that the trivial group (generated by the image of the constant function) is isomorphic to the non-trivial group (generated by the disconnected domain of the constant function).
I really wanted to prove this directly from first principles but I didn't manage. Can someone give me the direct proof? I would appreciate it very much. Thanks for your help!

Suppose there is a homotopy $F: [0,1]\times A \to X$ such that $F(0,a) = a$ and such that $F(1,a) = p_0$ for all $a \in A$ and some $p_0\in X$.  
Now for a fixed $a\in A$ consider the path $\gamma_a(t) := F(t,a)$. This path goes from $a$ to $p_0$ by assumption on $F$. But then $a$ must lie in the same path component as $p_0$! 
Since $a$ was arbitrary, every point $a$ of $A$ must lie in the same path component (in $X$) as $p_0$. In particular, $A$ is contained in one component of $X$.
But then, choosing $p \in X$ such that $p$ doesn't lie in the same component of $X$ as $p_0$, we get a contradiction to the assumption that $A$ is a deformation retract of $X$: If it were, then there would be a path along which $p$ travels into the component of $p_0$ during the deformation.
