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
-2
votes
1 answer

How to clear my Google map history on 4.0 on button click?

I'm developing a history clearing application, in which I want to clear my Google Map history. How can I do this? SearchRecentSuggestions mapsrs = new SearchRecentSuggestions(this.getBaseContext(),com.google.android.maps.SearchHistoryProvider",…
-3
votes
1 answer

How to pass an intent to my App without drawing the Activity?

I'm implementing a simple App that can receive 'share's from the YouTube App and simply sends it to a server. I'm able to pass the Intent to a ShareActivity I've implemented, but every time I share a video from YouTube, it opens the ShareActivity.…
Samuel Bushi
  • 341
  • 3
  • 16
-3
votes
2 answers

what to be used for constant interaction(for every 3 mins) with server and showing alert to user in android

In my application i want to check any new orders are there for every 5 minutes.if any new order came,i want to show alert box in any activity of my app and if the app is in back ground(not visible) i want to show notification
shra1
  • 1
-3
votes
1 answer

what is the best to download images data from network in android

i am downloading (pref-etch) images from server at some time of interval so i wanted to know what is the best way to download images asyntask service intentservice please help
Mahtab
  • 269
  • 3
  • 11
-3
votes
1 answer

Intent Service how to run continuously in Background?

So I am using Activity Recognition API which I have created a service for called ActivityRecognitionIntentService. I really want this to work in background all the time. The Problem is the app shows in cached running services but shuts down and…
-4
votes
4 answers

NetworkOnMainThreadException when running task in IntentService

I am trying to do file downloading task using IntentService. I read that IntentService will create a worker thread and does the task requested. The following code will download a video file. public class MyServiceUsingIntentService extends…
vgokul129
  • 777
  • 12
  • 31
-6
votes
1 answer

Stop Resume Pause IntentService

In IntentService When i use stopSelf() it's is working for me like a charm but does it really terminate the current service? And Can we use Pause and Resume our IntentService? if can, how?
Anonymous-E
  • 827
  • 11
  • 29
-6
votes
2 answers

Can we use multiple webservice call in single intentservice's onHandleIntent()?

As i know intentservice's OnHandleIntent run on separate thread same like asynctask, so can we use two or more webservice call in single IntentService? If we do so.. how android will execute both webservice call? Means is it return result of first…
Brijesh Patel
  • 676
  • 1
  • 5
  • 13
1 2 3
74
75