I was recently given an ipod touch by a friend because he tried to jailbreak it and then it stopped working. I was able to restore it and get it to resync with itunes but the ipod will only work when plugged into the charger. When it is not plugged in it will work for a few seconds and then stop working. When I try to get it back on it gets stuck at the apple logo. The battery is fully charged. Any help would be appreciated.