android-intentservice Questions

2

Solved

Following FetchAddressIntentService implementation with IntentService (in kotlin): class FetchAddressIntentService //Constructor of this service : IntentService(INTENTTAG) { //Receiver where re...
Electrobiology asked 1/6, 2020 at 18:25

7

final Handler handler = new Handler(); LOG.d("delay"); handler.postDelayed(new Runnable() { @Override public void run() { LOG.d("notify!"); //calling some methods here } }, 2000); The "delay"...

2

Solved

I'm trying unzip some files in background, so I use IntentService like in google's tutorial. My service class declared in AndroidManifest like this: <manifest xmlns:android="http://schemas.and...
Hellbox asked 29/1, 2015 at 21:36

4

Solved

Run a service in background continuously. For example, a service has to be kicked off which will display a toast message 20 seconds once even if the app is closed. public class AppService extends ...
Temporize asked 22/4, 2017 at 10:0

2

I have implemented JobIntentService to do some background task which works fine on older Android devices (pre Android O). I see the intent is handled immediately but on Android O device there is so...

2

Initially I setup a BroadcastReceiver to receive intents from the Nearby Messages API. class BeaconMessageReceiver : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent...
Israelisraeli asked 5/12, 2018 at 16:56

5

Solved

I have created IntentService class and performing asyncTask but getting exception when onPreExecute() is called at this code line pDialog.show(); AsyncHandlerService Class --- public class AsyncH...
Earpiercing asked 29/5, 2014 at 14:15

11

Solved

I am seeking an example of something that can be done with an IntentService that cannot be done with a Service (and vice-versa)? I also believe that an IntentService runs in a different thread and...

3

Solved

I do not understand what difference between those two APIs. I mean when to use the first one. Why is there JobIntentService ? Thanks in advance

2

Solved

I have a JobIntentService that is launched every time a push notification comes in to tell the service to go fetch more data. While the app is in the foreground everything works as it should. When...

2

i need some help, can you explain to me how can i implement the Bluetooth Connection from my Application into my Mini Thermal Printer Device. The scenario is like this. I already connect my appli...

2

Solved

I would like to ask someone to explain me please, what are the main differences between HandlerThread and IntentService, and what are the main use-case scenarios? I understand that HandlerThread c...
Bethought asked 12/8, 2016 at 19:1

3

I'm trying to bring my app from background to foreground. In onHandleIntent() of my custom IntentService class, I have: Intent intent = new Intent(); intent.setClass(getApplicationContext(), MainA...

2

Since Android Oreo background execution limits, the docs recommend to refactor IntentServices to JobIntentService. https://developer.android.com/about/versions/oreo/background JobIntentService ru...

5

I implemented Geofence in android application. I followed this link to implement 'Geofence' in app. I am using 'Retrofit' library to call 'HTTP' request. App has following permissions : <use...
Preprandial asked 4/8, 2017 at 11:52

2

Solved

I am using an IntentService in a alarm manager to trigger it after every 15 seconds. I have to continuously send large amount data to server and receiving large amount of data in response in backgr...
Neckerchief asked 21/6, 2016 at 10:0

5

Solved

i have an activity ("ApplicationActivity") that call an intent service ("DownloadService") The intentService download files from internet in background, but i want to be able to abort a specific d...
Interlining asked 6/9, 2011 at 10:49

2

Solved

I have an IntentService that is using android.support.v4.os.ResultReceiver to pass data. In the IntentService, when I use ResultReceiver.send method to send the result back, Android Studio shows an...
Pomeranian asked 14/3, 2017 at 13:24

2

I'm using an IntentService to run a background service for my app on android. Oddly I'm getting a lot of crash reports with cases where the intent passed to onHandleIntent is null. I'm not even sur...

2

Solved

Does the FirebaseMessagingService run in the background similar to how an IntentService operates? I see that FirebaseMessagingService extents Service which does not run in the background, but I'd l...

1

Solved

I am new with Kotlin and little bit stack with intentService. Manifest shows me an error that my service doesn't contain default constructor, but inside service it looks ok and there are no errors....
Highkey asked 24/11, 2016 at 8:23

3

Solved

I have some code that downloads a "Current" object's JSON. But this same code needs to be called by an IntentService whenever an alarm goes off (when the app is not running any UI), and also by an ...

4

I know this question has been asked before, but I've been over all of the answers I could find and still haven't been able to solve the problem. The issue is that when by BroadcastReceiver starts ...

1

I have an application which needs to run in the background, so I'm using a WakeFullService for that. But in Asus Zenfone it's not working because Auto start manager does not allow the app to run. M...

1

Solved

I'm seeing a crash in Crashlytics: Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getIntExtra(java.lang.String, int)' on a null ...

© 2022 - 2025 — McMap. All rights reserved.