My iphone keeps on flashing and locking by itself every few seconds?

Since 5 hours ago my iphone 5 has been flashing every 10 seconds intervals or so and it will lock by itself and turns on back to the lock screen by itself. It would even flash to the power off screen at times. I've tried syncing, charging and restarting my phone but things won't change. (I've had my phone for almost a year now + the decrease volume button is spoil) should i claim from warranty or are there any way i could resolve this flashing issue by myself?

Definitly claim for warranty, or go to the genius bar

  • Why does my iPhone 5 keep locking itself? My iPhone 5 has recently been locking itself whenever I'm using it. Sometimes the "Slide to Power Off" screen will appear out of no where. Whenever I turn off the phone it just turns itself back on. This is the only problem I've had with it.
  • Why does my internet disconnect for a few seconds and then reconnect? I have had this problem for months now, and I haven't had any luck with fixing it. We have gone through 4 different routers and 2 different modems. I have tired disabling stuff and uninstalling and reinstalling drivers. This happens on all devices: ipods, xbox, computer, laptop, iphones. Does anyone know why this is?!
  • My iphone keeps rebooting itself every second? So i have a jailbroken iphone and i installed something and instead of it usually saying "respring dashboard" it said "reboot device" so i clicked it and now it just literally keeps restarting itself and won't stay on. Help. : It won't let me turn it off it just keeps going to the little loading circle thing
  • My iPhone 4s won't shut off, it just restarts after a few seconds? When I shut my phone off I slide the "slide to power off" thing it's circle pops up like its shutting off and then after a second the apple icon pops up and the phone turns back on.