python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Android stop foreground service executes onStartCommand
Why calling context.stopService(stopIntent) is going to execute onStartCommand am i missing something?
i had to do this in the onStartCommand
if (ACTION_STOP_SERVICE == intent?.action) { stopSelf() }
...
Hak
Votes: 0
Answers: 1
because currentInputConnection always returns null
I am trying to build an IME (input method editor) for Android. I know that I have to create a class that extends InputMethodService, to have access to the getCurrentInputConnection method. My understa...
chrrissoft
Votes: 0
Answers: 2
Update widget by Broadcast message
I want to develop widget, which shows my public IP. For updating this widget I want use next broadcast messages:
android.net.conn.CONNECTIVITY_CHANGE
android.net.wifi.STATE_CHANGE
android.intent.actio...
Electroma
Votes: 0
Answers: 0
Can we startForegroundServie from an exact alarm's receiver in the background?
In one of the exemptions of the "cannot start foreground service from background" restriction, the doc mentions:
Your app invokes an exact alarm to complete an action that the user
requests...
thankyoussd
Votes: 0
Answers: 1