当前位置:网站首页>Jerry's watch reads the file through the file name [chapter]
Jerry's watch reads the file through the file name [chapter]
2022-07-06 17:54:00 【Rambo-Lamborghini】
//WatchManager yes WatchOpImpl Subclasses of , Must be in 1.3 Good configuration sdkWatchManagerwatchManager=WatchManager.getInstance();Stringname=“ file name ”;Stringpath=“ Save the path ”;Listlist=FileBrowseManager.getInstance().getOnlineDev();if(list.size()<1){// There is no online device return;}SDCardBeansdCardBean=list.get(0);// Get the device , If there are multiple devices , Please get the corresponding equipment according to your needs intdevHandle=sdCardBean.getDevHandler();booleanunicode=false;// Whether the file name supports long file names ( Long file adoption unicode code , Short file names are used 8+3 Structural ASCII code )
GetFileByNameTask.Paramparam=newGetFileByNameTask.Param(devHandle,name,path,unicode);GetFileByNameTasktask=newGetFileByNameTask(watchManager,param);task.setListener(newTaskListener(){@OverridepublicvoidonBegin(){// Start }@OverridepublicvoidonProgress(intprogress){// Progress callback }@OverridepublicvoidonFinish(){// success }@OverridepublicvoidonError(intcode,Stringmsg){// Failure }@OverridepublicvoidonCancel(intreason){// Cancel }});task.start();
边栏推荐
- Binary search strategy
- 微信小程序获取手机号
- 带你穿越古罗马,元宇宙巴士来啦 #Invisible Cities
- Xin'an Second Edition: Chapter 24 industrial control safety demand analysis and safety protection engineering learning notes
- 李書福為何要親自掛帥造手機?
- Pyspark operator processing spatial data full parsing (5): how to use spatial operation interface in pyspark
- 视频融合云平台EasyCVR增加多级分组,可灵活管理接入设备
- Xin'an Second Edition: Chapter 26 big data security demand analysis and security protection engineering learning notes
- 酷雷曼多种AI数字人形象,打造科技感VR虚拟展厅
- Unity小技巧 - 绘制瞄准准心
猜你喜欢

Pytest learning ----- pytest operation mode and pre post packaging of interface automation testing

Why should Li Shufu personally take charge of building mobile phones?

面试突击63:MySQL 中如何去重?

Unity tips - draw aiming Center

How to solve the error "press any to exit" when deploying multiple easycvr on one server?

node の SQLite

基于STM32+华为云IOT设计的智能路灯

Summary of Android interview questions of Dachang in 2022 (I) (including answers)

F200——搭载基于模型设计的国产开源飞控系统无人机

Getting started with pytest ----- test case pre post, firmware
随机推荐
QT中Model-View-Delegate委托代理机制用法介绍
Awk command exercise
sql语句优化,order by desc速度优化
2022年大厂Android面试题汇总(二)(含答案)
[translation] principle analysis of X Window Manager (I)
Getting started with pytest ----- test case rules
Solution qui ne peut pas être retournée après la mise à jour du navigateur Web flutter
【Android】Kotlin代码编写规范化文档
Unity小技巧 - 绘制瞄准准心
Pytest learning ----- detailed explanation of the request for interface automation test
Xin'an Second Edition: Chapter 26 big data security demand analysis and security protection engineering learning notes
带你穿越古罗马,元宇宙巴士来啦 #Invisible Cities
The easycvr platform reports an error "ID cannot be empty" through the interface editing channel. What is the reason?
Essai de pénétration du Code à distance - essai du module b
Unity particle special effects series - treasure chest of shining stars
Heavy! Ant open source trusted privacy computing framework "argot", flexible assembly of mainstream technologies, developer friendly layered design
Spark calculation operator and some small details in liunx
重磅!蚂蚁开源可信隐私计算框架“隐语”,主流技术灵活组装、开发者友好分层设计...
面试突击63:MySQL 中如何去重?
重磅硬核 | 一文聊透对象在 JVM 中的内存布局,以及内存对齐和压缩指针的原理及应用