Questions tagged [serviceconnection]

86 questions
141
votes
10 answers

Activity has leaked ServiceConnection @438030a8 that was originally bound here

I'm working on my first Android app. I've got three activities in my app, and the user switches back and forth pretty frequently. I've also got a remote service, which handles a telnet connection. The apps need to bind to this service in order to…
catdotgif
  • 1,738
  • 3
  • 15
  • 13
48
votes
8 answers

Android how do I wait until a service is actually connected?

I have an Activity calling a Service defined in IDownloaderService.aidl: public class Downloader extends Activity { IDownloaderService downloader = null; // ... In Downloader.onCreate(Bundle) I tried to bindService Intent serviceIntent = new…
Ryan
  • 870
  • 1
  • 7
  • 18
20
votes
4 answers

Do I need to call both unbindService and stopService for Android services?

In my Android app, I call both startService and bindService: Intent intent = new Intent(this, MyService.class); ServiceConnection conn = new ServiceConnection() { ... } startService(intent) bindService(intent, conn, BIND_AUTO_CREATE); Later, I…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
19
votes
4 answers

LicenseChecker checkAccess leaks ServiceConnection

I am receiving this exception in LogCat every time I press the Back button in my app: Activity has leaked ServiceConnection com.android.vending.licensing.LicenseChecker@471cc039 that was originally bound here The code responsible for this leak…
Bill The Ape
  • 3,261
  • 25
  • 44
9
votes
4 answers

MainActivity has leaked ServiceConnection android.speech.SpeechRecognizer$Connection@414ee400 that was originally bound here

In my app I recognize the user saying "exit" or "close" and the app should close. With this code SpeechRecognizer sr; Map dictionary; private static final int EXIT = 1; @Override protected void onCreate(Bundle savedInstanceState) { …
ezy
  • 59
  • 1
  • 9
  • 25
6
votes
2 answers

Is there a need to have one ServiceConnection per each Service bind?

I have several Android Services that I want to bind to in my Activity, so I can monitor several actions from the user. To be able to bind every Service, and I will have several, do I need several private ServiceConnections in my activity like the…
5
votes
3 answers

Android ProgressDialog won't spin

This is my fist stackoverflow post so please be gentle with me! I'm sure that what i'm trying to do is possible and it is something I have done (or not done?) that is causing the problem... I'm just not sure what that something is. What i'm trying…
John
  • 1,466
  • 3
  • 21
  • 38
4
votes
1 answer

Azure DevOps Service Connection to B2C Tenant?

I am trying to establish a Service Connection from Azure DevOps to my Azure B2C tenant and am running into issues. I'm starting to think it's not even possible. I have multiple Service Connections to the primary Azure Subscription/Tenant, but…
4
votes
1 answer

Azure Service Connections

I'm trying to create a release pipeline in Azure DevOps. I created an App service resource in Azure and I want to deploy my web-app to this App service through my pipeline. For that I need to create an ARM service connection. Can you please help me…
4
votes
4 answers

Azure DevOps Service Connections not showing when setting up a new release pipeline

I have setup a Service Connections within Azure DevOps to my Azure Subscription. It uses a certificate to connect. When I create a new pipeline and select the task Azure App Service Deploy. In the drop down box for Azure Subscription I see nothing…
markblue777
  • 829
  • 3
  • 13
  • 28
4
votes
3 answers

In ListView: Activity has leaked ServiceConnection that was originally bound here

Update: I just tested my app on another device and found out that I do get the error on a Nexus 4 running Android 4.4.2, but NOT on an Desire S running Android 4.0.4. Both of them have the current YouTube App installed (5.3.32), which is required…
4
votes
1 answer

leaked ServiceConnection Android text-to-speech

I have an app that is using text-to-speech on start up. Everything appears to work perfectly and I have no problems when running the app. However, everytime the app starts I get a LogCat error that says I have a leaked ServiceConnection on my…
Sam Bevins
  • 1,939
  • 4
  • 21
  • 26
3
votes
1 answer

return false BindService in api 30

when i run my code with compileSdkVersion 30 doesn't work but in 29 code working Intent intent = new Intent(); intent.setPackage("com.androidlearn.securityman"); ServiceConnection serviceConnection = new ServiceConnection() { @Override …
3
votes
2 answers

Cannot create Azure DevOps Service Connection: fields in the service connection are not expected: releaseUrl

I am using the normal browser UI to create an Azure Service Connection (Azure Resource Manager using service principal (manual)). When I enter my data and click on "verify" it says: Verification Succeeded But when I click on the button Verify and…
Patric
  • 2,789
  • 9
  • 33
  • 60
3
votes
2 answers

How to create Azure DevOps Service Connection scoped to multiple Resource Groups

I have a project whose resources spanned across 3 resource groups. I want to create a Service connection scoped to all those resource groups so that i can manage access at one place through that service connection. Currently i created 3 service…
1
2 3 4 5 6