It is a hardware problem it is happening because of autofocus mechanism.You have to first remove camera glass and gentely shake camera lense and gently press it and check it. I had same issue and it worked fine with me.Here are before and after pics...