`
文章列表

wifi漫游

802.11r协议是快速漫游协议,可以将AP间roam的时间由500ms降低到100ms,用于VoWifi这一个特定的条件。验证802.11r需要AP端支持和后台配置,802.11r不改变roam发生的条件。   1 触发roam scan发生的条件     在WCNSS_qcom_cfg.ini文件中gNeighborLookupThreshold=78,表示当信号小于-78db时将触发roam scan    2 决定是否进行roam     在WCNSS_qcom_cfg.ini文件中RoamRssiDiff=10表示扫描到的AP的rssi比现有AP的rssi大10的时候,将尝试扫 ...
From https://www.cnblogs.com/CoderTian/p/6221944.html 1.MainActivity.java import android.app.Activity; import android.os.Bundle; import android.os.Environment; import android.view.SurfaceHolder; import android.view.SurfaceView; /** * MediaCodec SurfaceHolder Example * @author taehwan * */ pu ...

addView 层级关系

1. addview(view, 0); // 加在最底层 2. 依次加入addview(view1, 0);    addview(view2, 2); //此时会报错,加这个view时,父窗口只有一个view,所以参数2会越界    addview(view3, 1); 3. 依次加入addview(view1, 0);    addview(view2, 1);    addview(view3, 1);    // 此时最上次会显示view2,    // view3 的顺序号并不比view2大,排在view2后面
<level-list xmlns:android="http://schemas.android.com/apk/res/android">      <item android:maxLevel="0" android:drawable="@drawable/p0" />      <item android:maxLevel="1" android:drawable="@drawable/p1" />      <item android:ma ...
/frameworks/native/libs/gui/BufferQueue.cpp if (mConnectedApi != NO_CONNECTED_API) { 659        ST_LOGE("connect: already connected (cur=%d, req=%d)", 660                mConnectedApi, api); 661        return -EINVAL; 662    } surface.java     /**      * Release the local reference to th ...

wifi 无缝切换

Wifijumper http://blog.csdn.net/mr_3s/article/details/50223631

surfaceview

/** * Provides a dedicated drawing surface embedded inside of a view hierarchy. * You can control the format of this surface and, if you like, its size; the * SurfaceView takes care of placing the surface at the correct location on the * screen * * <p>The surface is Z ordered so that it i ...

android 系统权限

1.System/app 和system/priv-app文件夹下的权限区别 a)PermissionInfo.java系统分四个层级权限 normal  dangerous  signatrue  signatureOrSystem b)priv-app可以获得最高的signatureOrSystem权限 c)只有priv-app才能写WRITE_SECURE_SETTINGS权限 d)Android.mk 中加LOCAL_PRIVILEGED_MODULE := true e)frameworks\base\core\res\AndroidManifest.xml <!-- Allow ...
1.模拟滑动屏幕(注意越向上,值越小,以左上角为基准) a)adb shell input swipe x1 y1 x2 y2 b)解锁adb shell input swipe 100 900 100 100 2.模拟点击屏幕 a)Adb shell input tap x y b)Adb shell input tap 100 800 3.模拟key值 a) adb shell input keyevent 3   // home KEYCODE_CALL 拨号键5 KEYCODE_ENDCALL 挂机键6 KEYCODE_HOME 按键Home3 KEYCODE_MENU 菜单 ...
在am/ActivityManagerService.java中 finishbooting() Intent intent = new Intent(Intent.ACTION_BOOT_COMPLETED, null); // 下面加, 让未启动过的应用也可以收到开机广播 intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
http://blog.csdn.net/skykingf/article/details/51785586 混淆 AndroidProguardPlugin

android wifi 直连

a) wlan 高级  wifi 直连, 打开另一台手机的wifi 直接,进入到这个界面即打开功能,点击搜索到的手机,连接即可 b) 具体传输文件需要应用的支持 c) WifiP2pManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); d) WifiP2pManager支持UPNP和DNS两种方式的设备(服务?)发现 e) http://test-angel.iteye.com/blog/1815079 f) App可以通过WifiP2pManager.addLocalService来向周边的设备广播自己支 ...
UPnP规范基于TCP/IP协议和针对设备彼此间通讯而制订的新的Internet协议。要说计算机外设的即插即用(Plug and Play(缩写PnP)) Required. Search Target. Single URI. If ST header in request was, ssdp:all Respond 3+2d+k times for a root device with d embedded devices and s embedded services but only k distinct service types (see section 1.1.2 for a d ...

JmDNS

1. 注册设备     public void publishService(BonjourServiceInfo svcInfo) {         synchronized (mJmdnsLock) {             ServiceInfo serviceInfo = ServiceInfo.create(svcInfo.getServiceType(),                     svcInfo.getServiceName(),                     svcInfo.getServicePort(),                     0 ...

bonjour

Bonjour是苹果为基于组播域名服务(multicast DNS)的开放性零设置网络标准所起的名字,能自动发现IP网络上的电脑、设备和服务。Bonjour 使用工业标准的 IP 协议来允许设备自动发现彼此,而不需输入IP 地址或配置DNS 服务器。
Global site tag (gtag.js) - Google Analytics