How to find Bonjour in local wifi in Android

449 Views Asked by At

I have a problem that I want to get an Ip of remote computer via Bonjour which is preinstalled . But I unable to connect with that, I don't know why because I have download an example code from Git Hub and also download the jmdns3.4.1 Jar. But the sample contains the error as Conversion to Dalvik format failed with error 1. Then I have written this question to get the exact answer.

Thanks is advance.

1

There are 1 best solutions below

0
On

First off you need to use a special version of jmdns compiled for Android found here. The reason is Android cannot actually execute Java class files, but rather executes Java dex files since it uses Dalvik.

It may also be a jar-conflict if you are 100% sure you're using the right jar-file. See this question for more information.