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

intentservice start new intent fails: not found

i am trying to download a json file in a intentservice and when the downloading is done, i want a new activity to start. This activity has two tasks: - show an alertDialog with two options: restart/not - save an timestamp of the update in…
Jasper
  • 2,389
  • 4
  • 25
  • 40
0
votes
2 answers

Starting an IntentService from FileObserver

I'm writing an app that makes use of the fileobserver in android. When I file is modified in anyway (creation, etc.) it should upload. In order to implement a queue and keep from running out of memory by using threads and such, I want to use an…
Osmium USA
  • 1,751
  • 19
  • 37
0
votes
1 answer

IntentService OnHandleIntent is not being called

I am trying to run a background music using Intent service. The OnhandleIntent does not get called. I tried adding breakpoints and even the code android.os.Debug.waitForDebugger(); but i am unable to step into OnHandleIntent. I have added the…
0
votes
2 answers

Scheduling background work in Android

I'm new to Android so I want to make sure that the following solution is the correct one. The problem: I want to sync the device's local database with a database on my server, via a webservice, every 10 minutes. I already have a web service call…
Cailen
  • 690
  • 1
  • 9
  • 23
0
votes
0 answers

intent service not populating screen

I have it set up so that when the user hits "clock in" it starts the intentservice, the intent service then updates the ui, the only problem is its not working.... here is my code for the main activity page : package com.famousmods.payme; …
Mr. Pivirotto
  • 281
  • 2
  • 6
  • 23
0
votes
1 answer

ArrayList of serializable objects as intent extra not received by broadcast receivers

I am sending a broadcast with the intent containing an ArrayList of serialized objects as a intent extra. When this arrayList contains about 500 valid objects, this is not being received by the onReceive() of the broadcast receiver. But with about…
0
votes
2 answers

What can be wrong in IntentService

I have successfully used IntentService a few times, but in the current app, I can't get BroadcastReceiver's onReceive() to start. I have the exact String in Intent's action of the IntentService and in the IntentFilter which was registered in…
Jason Ching
  • 1,037
  • 4
  • 19
  • 27
0
votes
1 answer

Retrieving JSON from database through service on Android

I am creating an app that requires a local database to be updated every time there has been a change in the server database. I want to run a service that runs every 2 minutes and updates the local database using ORMLite. Would an IntentService be…
Darussian
  • 1,573
  • 1
  • 16
  • 28
0
votes
1 answer

Starting a Service from a BroadcastReceiver

The parts of this application in question are an IntentService (DatabaseService) and an AppWidgetProvider (LotWidget). In LotWidget, when a button is pressed, a PendingIntent is fired which sends a broadcast to itself, and is received in…
0
votes
1 answer

Starting intentservice over adb fails

When I try to start an IntentService over adb i get tho following error E/AndroidRuntime( 2418): java.lang.RuntimeException: Unable to instantiate service com.myCompany.MyPackage.Service: java.lang.InstantiationException:…
Similitran
  • 165
  • 1
  • 1
  • 9
0
votes
0 answers

Whats the equivalent for android onHandleIntent() in titanium

Is there any equivalent API in titanium for android onHandleIntent() ?
Niv
  • 59
  • 1
  • 4
0
votes
1 answer

Android Service Basics

I am new to Android services so I had some questions that would clarify how I could use them in my current project. 1) Do I need to have my application running to have the service running? Do I have to launch the application for the services to…
Erol
  • 6,478
  • 5
  • 41
  • 55
0
votes
1 answer

Using an intentService or are there better ways?

I'm creating an app that will do the following: If a mail comes in with a messageword. It needs to start to locate the phone by GPS functionality. after that it must show the result to the user. I already have it working with using a…
user1404924
  • 95
  • 1
  • 2
  • 11
0
votes
1 answer

Broadcast Receiver and Toasting

All, I have a broadcast receiver that does not have an associated layout or any activities. It is listening for some to unplug something from the audio jack. I have been able to get my receiver to work and raise a notification. My question is how…
ControlAltDelete
  • 3,576
  • 5
  • 32
  • 50
0
votes
2 answers

Error when trying initialize a service ( which extends IntentService class)

I try to play with Service in Android, my application contain an Activity with a button so that it can do action when I press it. The core component is the ExtractingURLService , which extends IntentService framework class. I have overrided the…
toantran
  • 1,789
  • 17
  • 25