你在android中的蓝牙聊天是什么意思

时间:2011-04-29 07:15:52

标签: java android

private static final int REQUEST_CONNECT_DEVICE = 1;
 private static final int REQUEST_ENABLE_BT = 2;
  public static final int MESSAGE_STATE_CHANGE = 1;
 public static final int MESSAGE_DEVICE_NAME = 4;
 public static final int MESSAGE_TOAST = 5;
 public static final String DEVICE_NAME = "device_name";
 public static final String TOAST = "toast";
 protected static final String TAG = null;
 protected static final boolean D = false;
 protected static final int MESSAGE_READ = 3;
 protected static final int MESSAGE_WRITE = 2;

上述所有声明是什么意思,因为我是android的初学者

1 个答案:

答案 0 :(得分:1)

这些是常数。

final表示该值已分配一次。

static表示变量在类的所有实例之间共享。

privatepublicprotectedaccess modifiers