-
Notifications
You must be signed in to change notification settings - Fork 90
Busy error while attempting to start network service #15
Comments
Are you calling And the framework can actually call |
Hi, I have the same issue. And I need to turn off wifi manually and turn it back. Any solution? EDIT I found this "solution": |
That would be this function. https://github.com/markrjr/Salut/blob/master/src/main/java/com/peak/salut/Salut.java#L435 EDIT |
What devices are you testing on? |
Ok, the issue appears when I close the app. But not if I close normally (pushing the back button of device), only appear if I push the Overview button (right button), and drag app for close. I see in the logcat that he can't close a group. The problem is with host. And when restart app, show the other erroir message.
|
Try replacing
|
I can't access to these methods because are protected. |
It's been a while since I've written Java but doesn't protected mean that derived objects can access the methods? So you should have access to those methods. If that's not the case, then you'll have to manually change the methods and add the repo as a module in your project. As for your other question, I'm not quite sure what you're asking. |
I am trying to WiFi data exchange capability to an app. And I might have a similar error. Regarding the fix: in my case I split the class which implements SalutDataCallback (it is a Service) and the activity (MainActivity) so I access the mNetwork object in the activity. In which cannot call protected methods... |
Any updates on this? I am getting the same issue. |
When I call
network.startNetworkService()
, it works once, but then consistently logs an error "Failed to create group. Reason :2". This error is created when, internally, themanager.createGroup()
method is called. Error code 2 corresponds to BUSY.This issue is resolved if I manually turn off wifi and turn it back on again. If I do so programmatically, like so:
the problem persists.
I've also tried using
network.stopNetworkService()
in theonStop()
oronDestroy()
methods of my activity but to no avail.Does anyone know how to resolve this error? StackOverflow says that it can be caused by a call to
manager.removeGroup()
when you aren't connected to a group, but that is not applicable. In addition,Base.java
uses much the same code as I do, yet when I run it in an example project, this error never occurs.The text was updated successfully, but these errors were encountered: