Skip to content

Is WifiWizard2 supposed to work? #4827

Answered by 321dev
321dev asked this question in Q&A
Discussion options

You must be logged in to vote

It worked after adding the necessary permissions to AndroidManifest.xml and using WifiWizard2.scan() instead of listNetworks().

I'm adding this here, just in case someone else is looking for a solution. I don't know if all of these are necessary, probably not:

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 321dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant