当前位置:网站首页>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();
边栏推荐
- The easycvr authorization expiration page cannot be logged in. How to solve it?
- Debug and run the first xv6 program
- Growth of operation and maintenance Xiaobai - week 7
- Olivetin can safely run shell commands on Web pages (Part 1)
- Pytest learning ----- detailed explanation of the request for interface automation test
- The art of Engineering
- How to solve the error "press any to exit" when deploying multiple easycvr on one server?
- EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
- 微信小程序中给event对象传递数据
- 一体化实时 HTAP 数据库 StoneDB,如何替换 MySQL 并实现近百倍性能提升
猜你喜欢
Vscode replaces commas, or specific characters with newlines
[elastic] elastic lacks xpack and cannot create template unknown setting index lifecycle. name index. lifecycle. rollover_ alias
2022年大厂Android面试题汇总(一)(含答案)
kivy教程之在 Kivy 中支持中文以构建跨平台应用程序(教程含源码)
EasyCVR电子地图中设备播放器loading样式的居中对齐优化
Distributed (consistency protocol) leader election (dotnext.net.cluster implements raft election)
Unity particle special effects series - treasure chest of shining stars
After entering Alibaba for the interview and returning with a salary of 35K, I summarized an interview question of Alibaba test engineer
在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
Reppoints: advanced order of deformable convolution
随机推荐
开源与安全的“冰与火之歌”
偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”
重磅!蚂蚁开源可信隐私计算框架“隐语”,主流技术灵活组装、开发者友好分层设计...
FMT开源自驾仪 | FMT中间件:一种高实时的分布式日志模块Mlog
历史上的今天:Google 之母出生;同一天诞生的两位图灵奖先驱
Distributed (consistency protocol) leader election (dotnext.net.cluster implements raft election)
2022年大厂Android面试题汇总(一)(含答案)
Run xv6 system
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
[getting started with MySQL] fourth, explore operators in MySQL with Kiko
Chrome prompts the solution of "your company management" (the startup page is bound to the company's official website and cannot be modified)
Sqoop I have everything you want
Reppoints: advanced order of deformable convolution
Unity particle special effects series - treasure chest of shining stars
在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
Wordcloud colormap color set and custom colors
FlutterWeb瀏覽器刷新後無法回退的解决方案
Spark accumulator and broadcast variables and beginners of sparksql
Shell input a string of numbers to determine whether it is a mobile phone number
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?