intentservice Questions

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"...

9

I want to keep a IntentService running in background even when the app is killed. And by "killed" I mean press home-button for a long time -> see all running apps -> swipe my app aside -> app kille...
Kimbra asked 29/5, 2015 at 9:20

2

Solved

Is it possible to detect if a notification attached with a unique id exists in the notifications bar? mNotificationManager.notify(100, mBuilder.build()); For example, I created the notification wi...

1

is there way to get callback is file is shared successfully in flutter with share? I have to make sure that file is shared/uploaded to other apps(whatsapp/gmail/other). i am sharing file in flutte...
Periodic asked 6/6, 2020 at 16:55

1

i create service and custom notification any thing work fine but android said app is running on notification tap for more information or to stop the app. how can i fix this. my custom BroadcastRec...

6

Solved

From everything I've seen on Stack Exchange and elsewhere, I have everything set up correctly to start an IntentService when Android OS boots. Unfortunately it is not starting on boot, and I'm not ...
Countersink asked 7/10, 2011 at 16:49

6

Solved

I know this question has been asked many times, but all the other threads didn't solve my issue at all, I can't see anything wrong with my code. Maybe I missed something here, can anyone help me ou...
Meadowsweet asked 2/2, 2013 at 4:16

2

Solved

I implemented an AlarmManager to send notifications when user adds a due date to a Task. However, when the user turns off the device, all the alarms are lost. Now I'm updating the BroadcastReceiver...
Dissimulate asked 15/10, 2018 at 23:26

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...

10

Solved

I am trying to achieve Web Scraping through a background IntentService that periodically scrape a website without a view displaying on the users phone. Since I have to do call some javascript on...

8

Solved

I have been reading around on internet connectivity with Android and noticed there are different ways to handle this i.e. AsyncTask and IntentService. However, I'm still not sure which one to use. ...
Asir asked 1/3, 2013 at 21:26

2

The process is bad error does not seem to be very well documented, and I have only been able to find workarounds. I am instead interested in the cause of this error and how to prevent it from happe...
Melanesian asked 19/10, 2014 at 15:56

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...

2

I have a side menu drawer in my activity that has 2 options ("My files" and "Sync"), each of which is a fragment. When I am in "Sync" fragment, there is a button to start downloading files from the...
Godevil asked 6/6, 2016 at 9:59

3

I have recently replaced all my service to foreground services and JobIntentService since there are some background execution limits (https://developer.android.com/about/versions/oreo/background) i...
Mandle asked 1/8, 2018 at 7:45

5

I have an image view , i had written swiping , at that time of swiping,the images are downloading from Internet, so i thought i have to download the images in the background before swiping , for th...
Dhammapada asked 10/6, 2011 at 7:40

1

In my Android app i have multiple intent services which run one after another and the very first intent service is trigerred by a broadcast. I came across Work Manager a few days ago and really lik...

5

Here's the scenario: I have a WakefulBroadcastReceiver that does a backup to a network computer or the cloud. It's set to go off in the middle of the night, when I know the tablet will have access ...
Haim asked 26/2, 2015 at 23:2

4

Solved

I'd like to get to know if an Activity successfully started an IntentService. As it's possible to bind an IntentService via bindService() to keep it running, perhaps an approach would be to check...
Outlast asked 15/8, 2011 at 0:49

2

Solved

Sometimes in my apps I need to do something in the background repeatedly (every X hours). Up to API 25 i use: AlarmManager with setInexactRepeating (to respect battery) WakefulBroadcastReceiver ...
Crispa asked 9/10, 2017 at 16:4

0

I have been getting two errors in my log once a notification is received EnhancedIntentService: Service took too long to process intent: com.google.android.c2dm.intent.RECEIVE App may get closed ...
Segovia asked 13/10, 2017 at 0:43

1

I'm using IntentService for handling my messages from push notification from FCM. It works perfectly as required when the message comes one by one but when the device is not connected to the networ...
Clemen asked 28/8, 2017 at 13:27

4

Solved

When should I use unregisterReceiver? In onPause(), onDestroy(), or onStop()? Note: I need the service to run in the background. Update: I get an exception releasing receivers null. Activity ha...
Iridectomy asked 15/1, 2014 at 11:41

1

This question has already been asked here but yet no good answer. So basically I have an intent service running in the background to do some stuff and once finished I send the result back to activ...
Seamount asked 30/7, 2016 at 12:17

2

Solved

I am getting following error when trying to configure Push Notification: 06-07 01:05:59.735 18708-18708/com.ebr.apps.ebr.development E/FirebaseInstanceId: Failed to resolve target intent service, ...

© 2022 - 2025 — McMap. All rights reserved.