关于修改默认wifi直连的名字其实很简单,打开frameworks\opt\net\wifi\service\java\com\android\server\wifi\p2p\WifiP2pServiceImpl.java这个文件,修改如下:

  // default that has low likelihood of collision with a peer                 String id = Settings.Secure.getString(mContext.getContentResolver(),                         Settings.Secure.ANDROID_ID);-                return "Android_" + id.substring(0, 4);+                return "默认的wifi直连名字"

更多相关文章

  1. android- activity,Application,activity渲染xml文件
  2. Android 文件操作大全
  3. android中加载assets中的资源文件
  4. android imageswitcher gallery 根据数据库内图片名字进行查看/
  5. Android开发 - 丰富常用的颜色文件colors.xml
  6. 学习Android之setDataAndType(利用第三方应用程序打开各种文件)
  7. 根据文件名称修改安卓默认的蓝牙接收文件地址

随机推荐

  1. android 横竖屏
  2. Android中获取应用程序(包)的信息-----Pa
  3. Android第九讲——网络(六)xUtils
  4. 解决Cocos2d-x3.1编译生成Android程序出
  5. Android(安卓)Dialog 去除背景内容模糊
  6. AndFire防火墙1.2版本发布
  7. android之TextVIew与Button交互
  8. 3.Retrofit上传头像给后端
  9. 实现类似Android联系人搜索功能
  10. android App Widgets