贤泽

Results 4 comments of 贤泽

可以参考issue247:https://github.com/donglua/PhotoPicker/issues/247

请在每一次写入数据之前延迟几十毫秒,确保上一次的数据写入完成。

写入的时候,最好放在线程里面,每次写入一包数据,之后延迟几十到几百毫秒,这样子,就不会出现exception occur while writing: Gatt Exception Occurred了。我是这么解决的,没有再出现异常了。

public HighLight(Context context) { mContext = context; mViewRects = new ArrayList(); mAnchor = ((Activity) mContext).findViewById(android.R.id.content); mListenersHandler = new ListenersHandler(this); registerGlobalLayoutListener(); } public HighLight anchor(View anchor) { mAnchor = anchor; registerGlobalLayoutListener();...