Fire-tray
https://addons.mozilla.org/en-US/firefox/addon/4868
martes, 31 de marzo de 2009
martes, 17 de marzo de 2009
Programar bluetoth en java.
Programar bluetoth en java.
1- Descargar estos dos paquetes.
bluecove-2.0.3.jar
bluecove-gpl-2.0.3.jar
de
http://sourceforge.net/project/showfiles.php?group_id=114020&package_id=123519
El proyecto se llama
http://www.bluecove.org/bluecove-gpl/
Instalar:
# libbluetooth-dev on Ubuntu
# bluez-libs-devel on Fedora
# bluez-devel on openSUSE
Programa hello world
______________________________________
import javax.bluetooth.*;
/**
*
* @author vd
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
try{
LocalDevice local = LocalDevice.getLocalDevice();
System.out.println("Name:- "+local.getFriendlyName());
System.out.println("getBluetoothAddress:- "+local.getBluetoothAddress());
System.out.println("Count:- "+local.getProperty("bluetooth.connected.devices.max"));
}catch(Exception e){
System.out.println(e);
e.printStackTrace();
}
}
}
______________________________________
1- Descargar estos dos paquetes.
bluecove-2.0.3.jar
bluecove-gpl-2.0.3.jar
de
http://sourceforge.net/project/showfiles.php?group_id=114020&package_id=123519
El proyecto se llama
http://www.bluecove.org/bluecove-gpl/
Instalar:
# libbluetooth-dev on Ubuntu
# bluez-libs-devel on Fedora
# bluez-devel on openSUSE
Programa hello world
______________________________________
import javax.bluetooth.*;
/**
*
* @author vd
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
try{
LocalDevice local = LocalDevice.getLocalDevice();
System.out.println("Name:- "+local.getFriendlyName());
System.out.println("getBluetoothAddress:- "+local.getBluetoothAddress());
System.out.println("Count:- "+local.getProperty("bluetooth.connected.devices.max"));
}catch(Exception e){
System.out.println(e);
e.printStackTrace();
}
}
}
______________________________________
Suscribirse a:
Entradas (Atom)