Discover Devices Wifi | Wifi p2p android tutorial | Wifi direct chat Android tutorial

Discover Devices Wifi | Wifi p2p android tutorial | Wifi direct chat Android tutorial

Sarthi Technology

3 года назад

9,161 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@coderforyou1602
@coderforyou1602 - 11.09.2023 13:23

My code not finding device its just showing discory failed

Ответить
@ThePlec
@ThePlec - 27.01.2023 19:59

Someone kindly help me. After this step, my project does not discover other peers. It just jumps directly to Discovery not started.

Ответить
@OmerFarukUcer
@OmerFarukUcer - 16.10.2022 17:42

Is it only problem for me but I can't eveb get the Device not Found title when I start to discovery.I can just get Discovery Started or Discovery Failerd.
I am suspicious about if my code doesn't work for onPeersAvaliable.

Ответить
@pragyanyadav5539
@pragyanyadav5539 - 06.07.2022 00:15

It takes too long for me for discovering of peers after i typed the sending of message code

Ответить
@dsp6742
@dsp6742 - 21.05.2022 21:39

For the people who're having a problem with the WifiP2pManager.ActionListener() permissions, just do ALT+ENTER on the ActionListener() function and you should get the ActivityCompat.checkSelfPermission method implemented. In the parameters for the function, replace "this" in the context with "MainActivity.this". That should fix the error for Android 10+ devices!

Ответить
@sandeepkarippayil9282
@sandeepkarippayil9282 - 19.01.2022 19:51

Sir I got exception bound

Ответить
@eleazarjr.saquiton906
@eleazarjr.saquiton906 - 11.12.2021 10:27

what emulator did you use for this? tnx

Ответить
@yomnamohamed8920
@yomnamohamed8920 - 17.09.2021 23:35

Hi, I tried this code on Nokia 6.1 plus device run AndroidOne system and when press discover button always shows discovery not started so why does this is happening, and how to solve this problem? but it works on galaxy A20 device
UPDATE: (Solved) for the problem (android 10+ discover button not working)
the solution is allow location services for this app from your mobile android setting (in my case Nokia 6.1 plus)
go to your mobile Settings->Location->App permission->choose your app->select Allow only using the app
That should solve the problem for android 10+ mobiles

Ответить
@NOGAMENOLIFEGAMING
@NOGAMENOLIFEGAMING - 17.07.2021 21:14

Thank you sir for the colossal work.
Sir please which android API level did you use in this application? and, what are the versions that are suitable for this project? I have android version 6.0 and android version 8.0 and the discover button procedure worked in the 6th version and did not work in the 8th version please help me out sir to find a solution for this issue

Ответить
@harisiqbal9120
@harisiqbal9120 - 02.07.2021 15:27

Sir connection did not work on android level 29 and above

Ответить
@MuhammadIbrahim-sf1bb
@MuhammadIbrahim-sf1bb - 16.05.2021 15:37

Are not you repeating the same thing? what about permissions? and can you please share the changes required to make it run on android 9 or 10.

Ответить
@chilltok1
@chilltok1 - 23.04.2021 20:45

Hi i´m unable to recreate the onClick Methode. Android Studie asked me to add a permisson check oder suppress the permisson. I have tried both and nothing seems to work. On my emulator i only get "reason 2 - Busy" and on my real device i get "reason 0". Is there something i missed?

Ответить
@thegnshut9922
@thegnshut9922 - 11.04.2021 09:07

Hi I followed your original series but I was unable to send messages after trying to connect two devices. I get sConnected failed: ECONNREFUSED (Connection refused). I know you are releasing an update in the coming days but I have a time constraint on my project and I was wondering if you had some advice to get past this issue

Ответить