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

  • SEARCH
  • Home
  • 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 7536855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:41:24+00:00 2026-05-30T06:41:24+00:00

I am working on an Android app which runs a periodic service (every 15

  • 0

I am working on an Android app which runs a periodic service (every 15 minutes) using AlarmManager.

The service sends/receives data over the internet.

I have noticed when 3G is enabled and the phone is idle. It has difficulty communicating with the internet. Its as if 3G doesnt automatically turn on when it needs to.

The service works great when the user is using the phone (and 3G) at the same time but not when the phone is idle.

Any suggestions how to trigger 3G when I need to?

  • 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-30T06:41:25+00:00Added an answer on May 30, 2026 at 6:41 am

    You need to obtain and hold a WakeLock when the phone is not in use. Otherwise the phone will go to sleep and not process your request.

    It’s important to create the wakelock in your BroadcastReceiver, the one that is called from the AlarmManager. Then set the WakeLock to a static reference and invoke the service. The service will then unset the static reference and continue to hold the WakeLock until the code is finished.

    Just a tip, you might want to look into AlarmManager.setInexactRepeating to save power. It groups similar alarms together so the phone wakes up less times. Also a 15 minute interval is very short. You’ll consume a lot of battery by just waking up the phone with that timespan. An hour minimum is good though.

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

Sidebar

Related Questions

I am working on an android app in which i have to fetch data
I am working on an android app in which I am using some Native
I am working on an android app which links to facebook (using the following
I'm working on an android app - which requests some data from server and
i am working on an android app which stores data in sqlite db i
I'm working on android app development in which how get profiling information like Data
I'm working on an Android app using the Windows Live services which uses OAuth2
I'm working on an Android app in which I would like to use multi-touch.
I have made an android app which working fine. I implemented the Login functionality
I am working on an android app that has a database in which one

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.