trebleshot / android

An open-source app that allows you to transfer files one to one securely or using a browser, all without the internet
GNU General Public License v2.0
149 stars 42 forks source link

targetSdkVersion 30 to not working creating hotspot and wifi. #154

Closed Ankitinnovatree closed 3 years ago

Ankitinnovatree commented 3 years ago

gradle to change targetSdkVersion 30 not working creating hotspot and wifi.

phone/mobile version android version 10

Ankitinnovatree commented 3 years ago

i have change targetsdkversion library version 28 and i am change 28 to 30 .

and issue is Samsung mobile android version 10 to not creating hotspot and i am creating manually to hotspotmanagerfragment only show stop hotspot and qr code not showing.

aqeelzoobi commented 3 years ago

@Ankitinnovatree did u find any solution to connect in Android 10 with target sdk 30 ?

Ankitinnovatree commented 3 years ago

sorry , but no found any solution's.

velitasali commented 3 years ago

Without making the appropriate changes, just increasing the SDK level will cause more problems. You should get rid of any deprecated APIs if you want to support newer versions of Android.

aqeelzoobi commented 3 years ago

Without making the appropriate changes, just increasing the SDK level will cause more problems. You should get rid of any deprecated APIs if you want to support newer versions of Android.

I resolved all other bugs successfully, it just doing issue to connect the hotspot in android 10, its receiving files in Android 10 but its doing issue when sending file. and issue is to connect with the user hotspot.

sergemastaki commented 3 years ago

@aqeelzoobi That issue may be caused by change in android 10 api. Apps are not allowed to activate wifi programmatically.

aqeelzoobi commented 3 years ago

@sergemastaki @velitasali . Dear thanks for response. i resolved the issue and connect the wifi in android 10.

aqeelzoobi commented 3 years ago

@aqeelzoobi That issue may be caused by change in android 10 api. Apps are not allowed to activate wifi programmatically.

Yes its because of android 10. U can connect wifi in android 10 using WifiNetworkSpecifier. https://developer.android.com/reference/android/net/wifi/WifiNetworkSpecifier.Builder