All Questions
Tagged with android-service android-intent
652 questions
0
votes
1
answer
60
views
(Android) Calling activity from service using startActivity(intent) gets called for the first time, but fails to run second time
I have an activity which i call from service, I am using startActivity(intent) to achieve it, it works fine when i am triggering it for the first time, the activity gets launched properly. But if I ...
0
votes
1
answer
55
views
How to manage an Android service with multiple operations?
I had recently joined a new company and have taken over a project that has been on-going for years. The unfortunate problem with this picture is that some of the code has been badly maintained and the ...
0
votes
1
answer
55
views
How to start my an Activity when home Button Pressed in android 10 or higher
I want my app start again after some time when it goes in background by pressing home button. That is app is not killed but still in recent. How to Achieve it in android.
I have tried using service ...
0
votes
2
answers
2k
views
How to start an Activity from Service Android 11
how can i open an Activity in the Background from my Service?
The App is running in background and an Intent Brodcast that triggers the start of an Activity within my app.
I tried it on an Android 8.1 ...
0
votes
1
answer
159
views
Passing array of objects from activity to service via intent
I'm struggling how can I pass an array with objects from activity to service by intent. After debugging i can say that my service doesnt even start because of error java.lang.RuntimeException: Parcel: ...
0
votes
1
answer
211
views
Launching specific fragment of an activity from a background service on Android 5.1.1
I have an app with a working background service running on a custom made Android 5 device (so I can use regular background service and I am ok with it)
My goal is that background service can send some ...
0
votes
1
answer
301
views
Broadcast receiver being called fine, but not showing notification
I have implemented a broadcast receiver to ask the user to restart the app if it is killed. I have confirmed that the broadcast receiver is being called fine, and it runs the below line but for some ...
0
votes
1
answer
706
views
Get action name of intent filter located in service tags in Android
I need to get action name of intent filter located in service tags from specified installed package name.
Actually, this issue may related to parsing AndroidManifest.xml file, but I want to use ...
0
votes
1
answer
72
views
Is using a Service onStartCommand for multiple intents bad practice?
I have a long-running foreground service which generates high priority notifications that require a yes/no button press in order to be dismissed.
The button presses are handled by addAction calls, ...
0
votes
0
answers
587
views
Start intent activity from service android
all)
I have an issue
1. I have Fragment which start two foreground service SpeechListener, CallService:
AndroidEntryPoint
class TransmitterFragment : Fragment() {
override fun onViewCreated(view:...
6
votes
1
answer
5k
views
Android 12 (SDK > 29) Extra_Output for ACTION_IMAGE_CAPTURE not working
I want to take a picture with the camera and then send it to another activity. Everything works on the emulator without any problems. But as soon as I try the app on my real device, I always get the ...
3
votes
3
answers
4k
views
Set mutability flag for pending intent but still receiving IllegalArgumentException error
I am facing an issue with firebase cloud messaging notifications for Android 12. I previously faced Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified ...
-1
votes
1
answer
71
views
StartForegroundService cause IllegalArgumentException
I'm trying to send an intent
fun enableMode(context: Context) {
val i = Intent(ACTION_ENABLEMODE)
i.putExtra(EXTRA_NUMBER, Number)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
...
2
votes
1
answer
1k
views
How to trigger background service when device theme is changed(Dark mode on or off) on Android
How to run background function when device theme is changed(Dark mode on or off) on Android.
Is there any onThemeChangeListener(OnDarkModeOn) or IntentFilter or BroadcastReceiver for it?
1
vote
1
answer
509
views
Background service is freezing/lagging android app
I have been developing an android application in which there is a service and I want to run it for ever.
I am using a broadcast receiver to get screen on-off intents inside oncreate of service and ...