java - Problems understanding NsdChat sample app -


i'm not sure understand how android sample works (nsdchat found in developer.android tutorials).

my first idea run 2 istances of app (with 2 instances of eclipse on same machine) , try make them communicate but, doesn't seem work: can't figure out if registration , discovery buttons works , while trying send message 1 destination app show nothing , eclipse console of both istances show "client sent message:test", why?

maybe haven't understood how example works. can explain me how execute , understand sample?

your first idea correct. it's run 2 instance of app on 2 phones. 1 register service. other 1 discover , connect. can talk. samples(nsdhelper.java) have bugs, need fix it.

or change service_type = "_http._tcp." "_ipp._tcp.", nsdchat can printer, can print on mac.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -