Похожие чаты

I'M tryin to write an app by which phones can

share files with eachother via hotspot/wifi connection. There are lots of file sharing apps using this approach, for example SHAREit.

As a start, I'm mainly focusing on multiple devices sending simple text messages to each other via hotspot/wifi connection. Having one device as server, and others as clients.
I already know socket programming in java, but I have no idea how to implement socket programming concepts on android using wifi connection.

Could anyone share links related for this application?
Code chatting program using wifi/hotspot connection would be much helpful.

4 ответов

32 просмотра

You have multiple options to choose from, you can use - mobile hotspots to bridge the network of two devices - WifiDirect API - You can use discovering services like NSD or JmDNS From my experience, if you dont mind how the two devices should initiate connection with each other, its best to rely on on same network transfer/mobile hotspot, then write communication code yourself. WifiDirect is also a better option over NSD or JmDNS. Initial discovery and connection time on NSD and JmDNS can suck a lot on different devices and different Android state.

Rastin- Автор вопроса
Melon Error
You have multiple options to choose from, you can ...

Thank you for your answer. Yes, I'm choosing hotspot sharing as means of communication, yet I don't find helpful links about it. what steps should i take in order to send a text message from device one to device two using wifi / hotspot connection?

Rastin
Thank you for your answer. Yes, I'm choosing hotsp...

First get both the devices on the same network. Hotspot or same Wifi. Then create a server on one device, and the other device plays the client. Its normal socket networking from this point.

Rastin- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта