Questions tagged [serviceconnection]
86 questions
0
votes
1 answer
IDownloaderClient onServiceConnected Not Being Called
I'm trying to get my app to download expansion files when it starts up. I followed the guide from Android and for a while it would start to download, then stop at 98% telling me that it couldn't verify the file, but the file was actually there.…

Cody Harness
- 1,116
- 3
- 18
- 37
0
votes
1 answer
Temasys library connection issue
I am compiling azure library gradle in sample app of Temasys library.
Azure library version:
compile 'com.microsoft.azure:azure-mobile-android:3.0'
Temasys gradle: compile(group: 'sg.com.temasys.skylink.sdk', // This is example
name:…

Monika Bindal
- 1
- 1
0
votes
1 answer
OnServiceConnected is not called
This is my ServiceConnection:
private ServiceConnection mConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder service) {
Log.i("","onServiceConnected TRUE");
locationService =…

rosu alin
- 5,674
- 11
- 69
- 150
0
votes
1 answer
Android: onServiceConnected not called after bindService
None of the many similar questions I have found have helped to solve my issue.
Here are some questions I've looked at:
ServiceConnection.onServiceConnected() never called after binding to started service
onServiceConnected never called after…

DerStrom8
- 1,311
- 2
- 23
- 45
0
votes
1 answer
Why is onServiceDisconnected not getting called on application crashes?
I have a regular Android ServiceConnection:
I'm overriding the onServiceDisconnected() method like so:
private ServiceConnection myConnection = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName name, IBinder…

David T.
- 22,301
- 23
- 71
- 123
0
votes
1 answer
Android: How to tell when a bound service has been destroyed?
I've got a service that's bound to from a couple of activities, each using a ServiceConnection.
Each activity needs to check before calling the service whether the service is already in use. So in the service I have a function (let's say…

Mick O'Hea
- 1,619
- 2
- 14
- 20
0
votes
2 answers
About android service-activity data transceive and ServiceConnection
There are several ways to connect to Service to Activity. I am only interested in local service and my LocalService will stand there untill user stops it(which also means end of app). I might know things wrong, if so please correct me.
On the…

guness
- 6,336
- 7
- 59
- 88
0
votes
2 answers
NullPointerException on getPurchases()
I am trying to get the purchases of the user , and I claim my Billing Service is null , the process is running in an AsyncTask ,btw I am a newbie to Inapp billing service , here are parts of my code :
my Service Connection :
IInAppBillingService…

Seaskyways
- 3,630
- 3
- 26
- 43
0
votes
3 answers
Android NonUI Thread making application "not respond"
I am editing the code of an android app that is making GPS calls in a service. LocationListener. It also uses ServiceConnection
In some views the device decides that my application is taking too long to respond, and that the user can either "Force…

CQM
- 42,592
- 75
- 224
- 366
0
votes
0 answers
ClassCastException in ServiceConnection.onServiceConnected(). Bound Services
i try to bind a service to an activity. But i got the ClassCastException here:
pos.main.client.ClientBackground_Service.ClientBackground_Binder binder = (ClientBackground_Binder) service;
I don't really understand why i get this exception. The…

zir
- 3
- 1
-1
votes
1 answer
Azure Devops pipeline SSH error connection
Is there a problem with Service connections?
After upgrade I can not create a private key in ssh service.
Formerly in the text field I had the option to upload, now the field is of type password and not file upload.
I tried to put the key in this…

Diego Saouda
- 13
- 1
- 2