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 8374731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:59:18+00:00 2026-06-09T14:59:18+00:00

Currently, I connect my tablet to other devices (through Bluetooth). The connection is successful,

  • 0

Currently, I connect my tablet to other devices (through Bluetooth). The connection is successful, but if the activity is paused and stopped, say when the home screen is pressed, it will disconnect for sure. I can always reconnect in OnStop() or something, but I want to maintain the connection throughout, unless the app process is destroyed altogether. How should I go about this?

  • 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-06-09T14:59:20+00:00Added an answer on June 9, 2026 at 2:59 pm

    Handling that in your Activity is not a way to go – as you noticed, Activities stop executing and drop your Bluetooth connections.

    You should create a Service which will handle your Bluetooth connectivity and keep running after your main Activity stops. Be sure to add an icon to notification bar to keep users notified that your application is still running in the background and burning battery.

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

Sidebar

Related Questions

i'm trying to make a database connection by an other script. But the script
I've read through the Oracle documentation concerning the CONNECT operations, but I can't seem
I am currently trying to connect to my localdb on MSSQL 2012 Express. I
Currently I am creating a WCF service which has to connect to a DAL
I currently have a PHP form that uses AJAX to connect to MySQL and
I'm currently trying to write a script that will connect to a site using
Currently, I have an application that uses Firebird in embedded mode to connect to
I'm currently developing an android application that uses sockets to connect to a local
I'm currently writing a server which multiple clients will connect to. The communication protocol
I'm currently planning a new web project. Clients are going to connect using a

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.