当前位置:网站首页>How app inventor accesses resource files in assets directory
How app inventor accesses resource files in assets directory
2022-06-13 08:20:00 【Python's path to becoming a God】
The application needs to open a local HTML file . use AI When your partner is debugging , Uploaded HTML The file is saved to the debugging directory of the mobile phone (android/data/com.wxbit.appinventor.aicompanion3/files/assets/xx.html), So everything is normal during debugging . But package the app into APK After the installation ,app The directory after installation does not appear assets subdirectories .
later , come to know assets The resource files in the directory themselves will not be extracted . So here comes the question , How can I APP Access to local during normal operation HTML What about the documents ? At first, I directly accessed an absolute directory address of the mobile phone in the code to solve the problem , But this needs to be done after each installation , Manually put... From other directories HTML file copy Go to the absolute directory address —— It's too complicated .
After checking a lot of information , notice TaifunTools Extension components can implement APP Access the... In the installation package in the running state assets Resource file . It's easy to use , Directly use it to return to the installation package assets In the directory , Combine the file names to form the index string , It is very convenient to display or open the operation later .
边栏推荐
- Wechat upload picture material interface
- AcWing 1977. Information relay (base ring tree, parallel search set)
- Phpexcel 10008 error resolution
- HCIP_ MGRE experiment
- es6删除对象的某个属性
- Redis subscribe connection timeout interrupt problem solution
- Edge浏览器使用BdTab新标签页插件(BD新标签页)
- Homestead environment setup
- Recognition of COVID-19 based on paddlepaddle
- MySQL installation and configuration under Windows
猜你喜欢
Structural analysis of hyperledger fabric (I)
The method of SolidWorks modifying text font in engineering drawing
Microservice project construction III: automatic code generation
About redis encapsulation tool class using distributed locks
Founder of Starbucks: no longer open "public toilets" to non store consumers for safety reasons
6. fabric2.2 stop clustering and delete data (use the official demo)
Edge browser uses bdtab new tab plug-in (BD new tab)
File upload question type
[game theory complete information static game] Nash equilibrium
Free file server storage technology
随机推荐
ERP basic data Kingdee
Mysql_ Preliminary summary of database data (Continued)
ERP基础数据 华夏
set实现名单查找与排除
es6删除对象的某个属性
6. fabric2.2 stop clustering and delete data (use the official demo)
Edge浏览器如何安装BdTab(BD)新标签页插件(图文教程)
星巴克创始人:出于安全考量 或不再向非店内消费者开放“公厕”
Import the robot model built by SolidWorks into ROS
Data accuracy problems caused by inconsistent data types during sum in MySQL
Recognition of COVID-19 based on paddlepaddle
How to efficiently manage commodities and inventory in the beverage wholesale industry
HCIP_ MGRE comprehensive experiment
名次的确定
CCNP_ Summary (Continued)
Dfinity (ICP) deployment and development-2
Introduction to dfinity (ICP) -1
实践出真知--你的字节对齐和堆栈认知可能是错误的
Plane merging (matlab)
How about a well-known food material distribution information management system?