Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6810689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:14:10+00:00 2026-05-26T20:14:10+00:00

I wondered if anybody had encountered this problem. I’m writing an application for Android

  • 0

I wondered if anybody had encountered this problem.

I’m writing an application for Android which allows you to set a scheduled time and duration to record audio – it’s a lot like the application “Informant”. However, I’ve found that if the recording happens while asleep, the phone will almost always reboot after approx 20 minutes or so of recording.

It’s absolutely fine if the phone is kept awake or if it’s charging, but if it goes to sleep, a reboot almost always occurs. Notice that I’m not saying “crash” of the program, I’m saying an actual crash and reboot of the phone itself!

Funnily enough, Informant will also do the same thing, and this is a paid-for app on the market!

Since there don’t seem to be many mentions of this on the net (the exceptions being here: Android phone shutting off while using mediarecorder and cannot get logs and possibly here: http://community.developer.motorola.com/t5/Android-App-Development-for/Droid-Bionic-crash-and-reboot-with-MediaRecorder/td-p/19527 ) it makes me wonder if this is a problem with just certain phones. Mine is the Orange San Francisco (ZTE Blade) with MoDaCo Custom ROM (rooted).

Has anybody seen similar problems, and can shed any light on this? Perhaps we’re just doing something stupid without realising it.

Incidentally, I did try writing the audio files to SD originally, then switched to writing them to internal memory: This second approach seems to make a reboot take longer to occur.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:14:10+00:00Added an answer on May 26, 2026 at 8:14 pm

    I found the solution to this was to use a WakeLock: Only a partial wakelock is required, and it performs flawlessly. Just lock when you start recording, then unlock when you finish. The phone will appear to be off – there’s no visible difference – but power consumption is increased.

    http://developer.android.com/reference/android/os/PowerManager.html

    (It’s probably not a problem with all phones)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is something I could hack together, but I wondered if anybody had a
I wondered if anybody can come up with a shortened version for this code:
Wondered if anyone had any idea why the following problem is occurring, or had
I just wondered if anybody can point me in the right direction: I'm looking
I wondered if someone might have some insight into this. jqGrid is quite happy
I wondered if there is a programming language which compiles to machine code/binary that
I've always wondered this - why can't you declare variables after a case label
I wondered if there were any plugins or methods which allow me to convert
I've been looking at Zookeeper recently and wondered whether anybody was using it currently
I get this problem come up sometimes my divs to not behave as expected.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.