Bug #907

audio recording stops if phone screen goes to sleep/locks

Added by baghdadbrian almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:03/21/2013
Priority:UrgentDue date:04/03/2013
Assignee:n8fr8% Done:

0%

Category:-Estimated time:4.00 hours
Target version:Dev Sprint 5
Component:

Description

This is occurring on a galaxy nexus running 4.2.1

I'm not sure what the preferred solution should be. the issue is that a user may wish to set the phone down when recording a long sound, such asa an interview, in which case they want recording to continue.

History

#1 Updated by n8fr8 almost 5 years ago

  • Priority changed from Normal to Low

#2 Updated by SteveWyshy almost 5 years ago

  • Priority changed from Low to High

#3 Updated by baghdadbrian almost 5 years ago

  • Priority changed from High to Urgent

#4 Updated by n8fr8 almost 5 years ago

  • Due date set to 04/03/2013
  • Status changed from New to In Progress
  • Estimated time set to 4.00

we already do have support for WAKE_LOCK which is essentially to keep the device on and running, so not sure why this is happening.

Is this on the audio story/tape recorder, or on the slide narration? I assume the first.

Will do more testing and try to replicate here, but as I said, we already have the code to fix this.

#5 Updated by n8fr8 almost 5 years ago

  • Status changed from In Progress to Resolved

okay added this also now:

getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON);

which should do the trick.

#6 Updated by n8fr8 almost 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF