Iphone 4 couple of problm

Hi i hav bought an iphone 4 yet frm my frend

I hav a question
I hav updated by iphone 4 to latest 4.3.5 and aftr every 5 to 10 min it shows a message called TGE ACCESORY OF THE IPHONE IS NT RECOGNIZED (something like this)

And the secnd thing is tht the hme button of the iphone is very irr responsive

So is there is any solution of my problms??
I am not sure what the message is about, but at times my home button has acted like that. I did a clean restore and set up as new iPhone and it helped.
Maybe it will fix both problems.
For the home button issue take a look at this:

http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/

For the error message you get I've read that it's usually associated with the charging port connector. There is probably dust, rust, water damage in the port. Try cleaning it out along with the sync cable and hopefully this should take care of the problem.
Check the water damage indicators inside the charge/usb port and the headphone port...that is a common issue that represents the phone having been submerged in water (and damaged).
Try using the restore button in iTunes. That might fix the error message
I hav restore it to 4.3.5 again
But i downloaded the ISPW file not via itunes
I downloaded frm a website and then restore but still it didnt fix
Should i try to download the software via itunes and then restore as before i didnt download the ispw file because through itunes it take many hours to download

Original thread: https://forums.imore.com/threads/iphone-4-couple-of-problm.217947/