Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException on some devices #1

Open
ThanosFisherman opened this issue Oct 12, 2014 · 0 comments
Open

IllegalArgumentException on some devices #1

ThanosFisherman opened this issue Oct 12, 2014 · 0 comments

Comments

@ThanosFisherman
Copy link

Hey, really cool adaptation of farproc's wifi connecter.
However both libraries have a bug which i'm struggling to fix for the last few weeks but I really haven't found any solution yet
It throws IllegalArgumentException on some devices mostly on sony Xperia while trying to connect.
Heres the error log

FATAL EXCEPTION: main
java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.wifi.SCAN_RESULTS flg=0x8000010 } in com.android.utils.wificonnecter.WiFiConnecter$1@418af050
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:780)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5214)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: Invalid arguments passed in: null,null
at android.os.Parcel.readException(Parcel.java:1435)
at android.os.Parcel.readException(Parcel.java:1385)
at android.net.wifi.IWifiManager$Stub$Proxy.addOrUpdateNetwork(IWifiManager.java:524)
at android.net.wifi.WifiManager.addOrUpdateNetwork(WifiManager.java:671)
at android.net.wifi.WifiManager.updateNetwork(WifiManager.java:658)
at com.android.utils.wificonnecter.WiFi.shiftPriorityAndSave(WiFi.java:225)
at com.android.utils.wificonnecter.WiFi.connectToConfiguredNetwork(WiFi.java:131)
at com.android.utils.wificonnecter.WiFi.connectToNewNetwork(WiFi.java:114)
at com.android.utils.wificonnecter.WiFiConnecter.handleEvent(WiFiConnecter.java:98)
at com.android.utils.wificonnecter.WiFiConnecter.access$3(WiFiConnecter.java:91)
at com.android.utils.wificonnecter.WiFiConnecter$1.onReceive(WiFiConnecter.java:54)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:770)
... 9 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant