简体   繁体   English

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

[英]what do u mean by bluetooth chat in 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;

what do u mean by all these above statement because i am a beginer in the android上述所有这些陈述是什么意思,因为我是 android 的初学者

These are constants.这些是常数。

final mean that the value is assigned once. final表示该值被分配一次。

static means that the variable is shared between all the instances of the class. static表示该变量在 class 的所有实例之间共享。

private , public and protected are access modifiers . privatepublicprotected访问修饰符

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM