Click here to Skip to main content
15,884,791 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Good day! Please, help me understand why WPA2-PSK Wifi Access Point is not created. What do I have:

What I have tried:

AndroidManifest.xml:

<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />


build.gradle:

compileSdkVersion 27
    buildToolsVersion "27.0.3"
    defaultConfig {
        applicationId "com.java.name"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }


I have tried different types of codes creating wifi AP:

How to create a WPA2_PSK based hotspot from android app – Solutions Bits[^]

Creating WPA2 PSK Access Point in Android Programmatically - Stack Overflow[^]


Application is launched on Xiaomi Redmi Note4, Android version - 7.0

Unfortunately none of solutions helped me, I`m still getting Wifi AP created but it is open and without password. Please, does anybody know what is the problem? Thank you.
Posted
Updated 17-Jan-18 23:02pm
v2
Comments
Gustav Brock 24-Jan-18 1:50am    
Not related to Microsoft Access.

1 solution

hello there ! I exactly had the same problem as yours , whenever i run my app , the password is always empty in my honor 6x android 7.0. I dont know if you are doing the same mistake but in my case i set Keymanagement to WPA_PSK , where it should be set to '4'.(WPA2_PSK). After that my app was fine. But the answers were already in the links you shared
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900