Questions tagged [intentservice]

IntentService is a special implementation of Android service component.

IntentService is a special implementation of Android service component that handles asynchronous requests (expressed as Intents) on demand, one at a time. The service is started when Intent is received, handles each Intent in turn using a worker thread, and stops itself when it runs out of work.

All requests are handled on a single worker thread -- they may take as long as necessary (and will not block the application's main loop), but only one request will be processed at a time.

1118 questions
0
votes
1 answer

Android - Start an IntentService on a specific day/time each week

I'm working on an app that has an IntentService that shows a Notification with showtimes for a local venue. I want the IntentService to be called every Fri at 5am or at boot on Friday morning. What would be the best way to do this? Right now I'm…
Shmuel
  • 3,916
  • 2
  • 27
  • 45
0
votes
1 answer

IntentService starting my app

I have an IntentService that runs every 5 minutes. The problem i'm having is when the user is out of the app, the service starts the app up. How can i specify to the service that the app should not be started? It doesn't have the desired effect at…
turtleboy
  • 8,210
  • 27
  • 100
  • 199
0
votes
2 answers

Update ListView from IntentService

I have an IntentService which creates an Overlay with the help of a WindowManager. In the WindowManager I add a View which contains a ListView. Now I want to add a new Item to the ListView in the onHandleIntent Method but if I call…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
0
votes
2 answers

Prevent Service to restart

I have an IntentService which is started from a BroadcastReceiver with startService(service). When I get new informations in the BroadcastReceiver the new infos are pushed through an intent with startService(service) again to the IntentService but…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
0
votes
1 answer

Reconnecting Messenger from Intent Service when activity restarted

I am working on a applicatin that syncs with videos on server. It starts a IntentService that downloads playlist, inserts it into database and than downloads actual video files to sd-card. I am using a messenger passed via intent when starting the…
urSus
  • 12,492
  • 12
  • 69
  • 89
0
votes
2 answers

Stop Activity from IntentService

I want to create a simple login in my application. From the SignInActivity, where user types his credentials, I start IntentService, which sends data to the server and obtains information about whether credentials are right or not. Errors, wrong…
Tom11
  • 2,419
  • 8
  • 30
  • 56
0
votes
1 answer

Resuming IntentService from Activity

I have an IntentService in my background that already started and running. Now I want to resuming this service from my activity, Any ideas?
iSun
  • 1,714
  • 6
  • 28
  • 57
0
votes
2 answers

Send a cursor to an activity from a service

I'm trying to send database cursor from a service(An IntentService) to my Activity(Which implements a Receiver to catch any response from the service). Once i get the data from query cursor = db.query(DBHelper.DB_BOOKS_TABLE, columns, where,…
AXSM
  • 1,142
  • 1
  • 12
  • 27
0
votes
1 answer

OnHandleIntent not being called in an Intent Service

I have an intent service that I'm starting on a separate process (I have it included in the manifest), and the process is being started, but the logs I have at the beginning of OnHandleIntent are never called. I'd like this to be in a separate…
adonal3
  • 268
  • 2
  • 8
0
votes
0 answers

Waiting for result in IntentService

Is there a way to wait for the result when using IntentService? Scenario. Service App is running --> receives login credentials from another app --> Service app then checks database (for some reason I always get Connection time out. And I know this…
jantox
  • 2,185
  • 4
  • 21
  • 22
0
votes
2 answers

Sending message from Activity to intentService

My question is as follows: I started my intentService from my main Activity. This intentService does some audio processing with audioRecord. However, when I need to start another activity in my application (recording video in this case), i need…
dandyling
  • 45
  • 8
0
votes
2 answers

Android CountDownTimer not working

I am writing a service intent which scans the network for a UDP broadcast from another device on the network. When the device is found it sends a message back to the main activity and then it does its thing. The problem is I need to set a timeout…
Travis Elliott
  • 291
  • 2
  • 5
  • 18
0
votes
2 answers

How do I access a variable from an intent download service?

I have created an intent download service and I want to pass download data to Toast and into Text in main activity. Download service should start from alarm manager repeatedly. How do I do this? Currently, it does not show in Toast, but I have…
0
votes
1 answer

Android Activity does not receive messages from IntentService using BroadcastReceiver

I am trying to develop an android app to measure QoS of networks. The app sends UDP packets to a UDP server running on my system. Since this is a long running process, I have implemented the UDP connection in a class which extends IntentService.The…
Poonam Anthony
  • 1,848
  • 3
  • 17
  • 27
0
votes
1 answer

Error while opening Database through an IntentService, database accessible through an Activity

I have a database helper class dbHelper which does the usual operation on the database. I have an activity which opens uses the database for its operation. Now i want to edit the database through a service. So I implemented the code below and it…
Rohit_D
  • 85
  • 1
  • 11