资源简介

Android蓝牙手机通信程序demo,实现手机通过蓝牙发送简单控制指令给单片机的蓝牙模块AND 蓝牙版的手机扣扣互聊,2部手机通过蓝牙通信~ 完整的project+code

资源截图

代码片段和文件信息

package edu.stanford.mobisocial.bluetooth;

import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.UUID;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothServerSocket;
import android.bluetooth.BluetoothSocket;
import android.os.Binder;
import android.os.Handler;
import android.os.IBinder;
import android.os.ParcelUuid;
import android.os.RemoteException;
import android.util.Log;

public class InsecureBluetooth {
static private class InUse extends RuntimeException {
}
public static BluetoothServerSocket listenUsingRfcommWithServiceRecord(BluetoothAdapter adapter String name U

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         364  2012-10-12 13:12  testBlueTooth\.classpath
     文件         849  2010-11-21 17:17  testBlueTooth\.project
     文件         875  2012-10-13 16:25  testBlueTooth\AndroidManifest.xml
     文件        8335  2012-10-13 09:39  testBlueTooth\InsecureBluetooth.java
     文件         337  2012-10-17 15:44  testBlueTooth\bin\classes\com\testBlueTooth\R$attr.class
     文件         397  2012-10-17 15:44  testBlueTooth\bin\classes\com\testBlueTooth\R$drawable.class
     文件        1472  2012-10-17 15:44  testBlueTooth\bin\classes\com\testBlueTooth\R$id.class
     文件         427  2012-10-17 15:44  testBlueTooth\bin\classes\com\testBlueTooth\R$layout.class
     文件         424  2012-10-17 15:44  testBlueTooth\bin\classes\com\testBlueTooth\R$string.class
     文件         524  2012-10-17 15:44  testBlueTooth\bin\classes\com\testBlueTooth\R.class
     文件        2681  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\RelayControl$ClickEvent.class
     文件        3014  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\RelayControl$ConnectedThread$ReadRunnable.class
     文件        1941  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\RelayControl$ConnectedThread.class
     文件        1330  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\RelayControl$MyHandler.class
     文件        6585  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\RelayControl.class
     文件        2558  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\testBlueTooth$1.class
     文件        2685  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\testBlueTooth$AcceptThread.class
     文件        3309  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\testBlueTooth$ClickEvent.class
     文件        4542  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\testBlueTooth$ItemClickEvent.class
     文件        6069  2012-10-17 15:43  testBlueTooth\bin\classes\com\testBlueTooth\testBlueTooth.class
     文件          36  2012-10-12 13:12  testBlueTooth\default.properties
     文件        2587  2012-10-17 15:44  testBlueTooth\gen\com\testBlueTooth\R.java
     文件         361  2012-10-12 13:15  testBlueTooth\project.properties
     文件        1861  2012-10-13 16:16  testBlueTooth\res\drawable-hdpi\icon.png
     文件        1861  2012-10-13 16:16  testBlueTooth\res\drawable-ldpi\icon.png
     文件        1861  2012-10-13 16:16  testBlueTooth\res\drawable-mdpi\icon.png
     文件        1407  2010-11-25 11:17  testBlueTooth\res\layout\main.xml
     文件        6293  2012-10-16 10:56  testBlueTooth\res\layout\relaycontrol.xml
     文件         177  2010-11-21 17:17  testBlueTooth\res\values\strings.xml
     文件        9424  2012-10-17 14:50  testBlueTooth\src\com\testBlueTooth\RelayControl.java
     文件       11331  2012-10-17 15:10  testBlueTooth\src\com\testBlueTooth\testBlueTooth.java
............此处省略0个文件信息

评论

共有 条评论