• Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    Java
  • Created almost 14 years ago
  • Updated about 12 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example use of Dnssd discovery on Android (using jmdns)
AndroidDnssdDiscoveryEclipse: an eclipse version.
AndroidDnssdDiscovery: a netbeans version of the thing.



Below, how I got the AndroidDnssdDiscoveryEclipse project and how to run it.
* create an android project
* in the AndroidManifest.mf, add:
 <uses-permission android:name="android.permission.INTERNET"/>
 <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
* after downloading jmdns 3.4.0, I needed to remove duplicate .class inside (at the same time I dropped the test classes):
** run: cp -r ~/jmdns.jar ./
** run: mkdir unjar
** run: cd unjar
** run: jar xf ../jmdns.jar
** run: jar cfm ../jmdns.jar META-INF/MANIFEST.MF javax/
** (create a copy or link for eclipse), run: cd ../AndroidDnssdDiscoveryEclipse && ln -s ../jmdns.jar
* refresh the project in eclipse
* add the jar as a dependency in eclipse by (right click on jmdns.jar and "build path -> add to build path"
* add info in the res/layout/main.xml:
    <TextView android:id="@+id/text"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="" />
* fill the activity
* In eclipse, "run as -> android application"
** if you have a linux pc connected to same network, you should see it listed by your android phone within a few seconds (as it exposes a "_workstation._tcp" service)
** you should also see the service exposed by the phone using "avahi-browse --all" (the service is called AndroidTest)





== OLD VERSION BELOW (before I found the problem with jmdns)

* create an android project
* in the AndroidManifest.mf, add:
 <uses-permission android:name="android.permission.INTERNET"/>
 <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
* after downloading jmdns 3.4.0 and finding no way to make dex compile the jar, I added the sources with:
** run: cp -r ~/app/jmdns-3.4.0/src/javax/ AndroidDnssdDiscoveryEclipse/src/
** run: rm -rf AndroidDnssdDiscoveryEclipse/src/javax/jmdns/test/
** refresh in eclipse
* add info in the res/layout/main.xml:
    <TextView android:id="@+id/text"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="" />
* fill the activity
* In eclipse, "run as -> android application"
** if you have a linux pc connected to same network, you should see it listed by your android phone within a few seconds (as it exposes a "_workstation._tcp" service)
** you should also see the service exposed by the phone using "avahi-browse --all" (the service is called AndroidTest)

More Repositories

1

deck.js

Better Modern HTML Presentations
JavaScript
36
star
2

deck.browsercast.js

Synchronize an audio soundtrack with you deck.js slides.
JavaScript
28
star
3

vuejs-python

Python (with reactive properties) which state is rendered using Vue.js through websockets
Python
19
star
4

nuedeck

NueDeck: super-charged HTML and markdown presentation framework
HTML
6
star
5

ClGaussianPyramid

Experiments on Gaussian Pyramid implemented using OpenCL
C
6
star
6

GSP

Java
5
star
7

deck.js-starterkit

A "minimal" repository to start writing a deck.js presentation (contains a lot of extensions).
CSS
5
star
8

DPGMMDemos

Experimenting with DP-GMM (Dirichlet Process Gaussian Mixture Models, i.e., Infinite GMM)
Java
5
star
9

FileAccessApplet

A simple java applet to embed in web page to access the filesystem (after the users grants access).
Java
4
star
10

deck.js-theme-builder

Theme Builder for Deck.js
CSS
3
star
11

auto-grade

Study and/or build tools for automatic correction of exams (mcq and more)
Python
2
star
12

Presentation-2014-LaHC-git

Slides of the presentation « Introduction to Version Control using Git and Gitlab » given at LaHC in 2014 (october)
CSS
2
star
13

remarkable-tools

Custom tools for the remarkable tablet
Python
2
star
14

slidev-addon-remoji

Replaces emoji by icons, especially useful for printing/exporting.
TypeScript
2
star
15

firefox-pdfsequenceprint

A firefox extension to export pdf sequences from interactive pages
Shell
2
star
16

teaching-weblets

Javascript/HTML/SVG/... weblets for teaching or explaining some concepts
HTML
2
star
17

my-user-scripts

Some public scripts for tampermonkey et al.
JavaScript
2
star
18

maven-repo

Custom Maven Repository using github pages (gh-pages branch)
2
star
19

AndromiscidDemo

Demo project for Omiscid on Android
Java
2
star
20

PushBorderLayoutScala

Very small scala project (1 file) to replace nested BorderLayouts in Swing GUI
Scala
1
star
21

angular-d3-network-example

JavaScript
1
star
22

CSwing

A portable C library for drawing shapes and handling keyboard events (for simple games)
Java
1
star
23

Presentation-2013-SoftShake-DeckJs

Slides of the presentation “Web Presentations, deck.js and Extensions” given at SoftShake 2013.
JavaScript
1
star
24

PushBorderLayout

Very small project to replace nested BorderLayouts in Swing GUI
Java
1
star
25

Python27BridjWrapper

Small maven project to build and package a java wrapper for python 2.7 (using jnaerator and bridj).
Java
1
star
26

GSPTutorial

Tutorial for the GSP framework
XSLT
1
star
27

GSPVideoTools

Some GSP modules for image/video manipulation
Java
1
star
28

AndroJSurf

Surf Feature extractor for Java that works on android
Java
1
star
29

ResearchTipsAndTricks

Supporting files for tips and tricks in scientific research
TeX
1
star
30

Presentation-2019-06-13-talk-naver-labs

HTML
1
star
31

GSPGstreamer

Using gstreamer in Java to do simple video manipulation (including GSP modules)
Java
1
star
32

EnvironmentApplicationAdaptation

Full source code for examples of the Environment-Application-Adaption architecture.
Java
1
star
33

findmyphone

Java
1
star
34

Presentation-2021-04-21-deep-learning-medical-imaging

Presentation on Uncertainty and Bayesian Neural Networks at the Deep Imaging 2021 School
HTML
1
star
35

trail-tools

Some tools around mapping, gpx, running, hiking, trailing, life and everything
Python
1
star
36

cours2python

Micro-Modules de cours, en Python 3, à l'université Jean-Monnet de Saint Étienne
Python
1
star
37

tadalot

Main page for the TADALoT Project (Région Auvergne-Rhône-Alpes, Pack Ambition Recherche 2017)
JavaScript
1
star
38

SelectorBasedLookup

Easy support for highly extensible context aware actions for use in the Netbeans platform (or just on top of the standalone lookup API)
Java
1
star
39

manim-eqcolor

Tools to generate animations using manim with an augmented latex syntax
Python
1
star
40

AvetanaBluetooth64

A fork of the GPL Avetana Bluetooth stack (for linux using BlueZ) with added fixes and patches for 64 bits and new BlueZ API.
Java
1
star
41

2014-epidemic-contact-tracing-communication-traces-plosone

Sharing the (old-ish) code for "Epidemic Contact Tracing via Communication Traces" by Katayoun Farrahi, Rémi Emonet and Manuel Cebrian
Java
1
star
42

deck.js-packed

A single file version of deck.js with some extensions.
1
star