当前位置:网站首页>How app inventor accesses resource files in assets directory
How app inventor accesses resource files in assets directory
2022-06-13 07:29: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 .

边栏推荐
- Reflection of C # Foundation
- DM Experiment 6: filter replication
- How to solve the 404 problem
- 量化框架backtrader之一文讀懂Analyzer分析器
- oracle问题,字段里面的数据被逗号隔开,取逗号两边数据
- RT thread simulator lvgl control: slider control
- TXT_ File encryption and compression
- Deploy RDS service
- Adding certificates to different systems
- Number of detection cycles "142857“
猜你喜欢

RT-Thread 模拟器 simulator LVGL控件:slider 控件

Considerations for using redis transactions

JMeter encryption interface test

Try to use renderdoc to view the shader code of UE

RT thread simulator lvgl control: switch switch button control

比较DFS和BFS的优点和缺点及名称词汇

Table access among Oracle database users

基于ESP32CAM实现WebSocket服务器实时点灯

Through the function seaborn cubehelix_ Palette build order palette

Redis learning journey - transaction
随机推荐
Station B crazy God notes
Tidb data migration (DM) Introduction
B. I hate 1111 (mnemonic search number theory
A. Vacations (DP greed
Real time lighting of websocket server based on esp32cam
P6154 wandering (memory search
Compilation and development process of Quanzhi v3s environment
C语言:如何给全局变量起一个别名?
个人js学习笔记
Considerations for using redis transactions
redis-6. Redis master-slave replication, cap, Paxos, cluster sharding cluster 01
检测循环数“142857“
P1434 [show2002] skiing (memory search
【硬记】脏读、不可重复读、幻读场景核心区别
TCP协议的三次握手过程和四次挥手过程以及为什么要这样? ------一二熊猫
QT读取SQLserver数据库
How to solve the 404 problem
C # using multithreading
Pdf to word
Redis learning journey -- do you know the data types of redis?