嗨
我正在尝试使用本机框架开发一个基本应用程序:https://iot.mi.com/vela/quickapp/
一切都运行良好,应用程序可以加载到我的智能手环中,但是当我尝试使用需要互联网连接的功能时似乎不起作用,我试图从互联网上获取 <image/> 但它没有加载,我也尝试使用 @system.fetch 从 https API 加载数据,但都不起作用。
(尽管它只在模拟器 IDE 中有效)
有人知道如何做到这一点吗?
或者是否有其他方法可以将图像从 Android 设备下载并移动到应用程序资产?我只是试图从互联网上渲染图像。
我对这个框架很陌生,希望有人能帮助我,谢谢!
(我使用了谷歌翻译,对不起我的中文)
---
Hi
I'm trying to develop a basic app with the native framework: https://iot.mi.com/vela/quickapp/
Everything worked well and the app loads in my smart band, however when I try to use functions that require internet connection seems to not work, I'm trying to fetch an <image/> from internet but it doesn't load, I also tried loading data from a https API with @system.fetch but doesn't work neither.
(Despite it works only in the emulator IDE)
Is there somebody that knows how to make this work?
Or if also there is an alternative to download and move the image from the Android device to the app assets?, I'm simply trying to render an image from internet.
I'm new with this framework, hope somebody can help me out, thanks!
(I used google translator, sorry for my chinnese)
我正在尝试使用本机框架开发一个基本应用程序:https://iot.mi.com/vela/quickapp/
一切都运行良好,应用程序可以加载到我的智能手环中,但是当我尝试使用需要互联网连接的功能时似乎不起作用,我试图从互联网上获取 <image/> 但它没有加载,我也尝试使用 @system.fetch 从 https API 加载数据,但都不起作用。
(尽管它只在模拟器 IDE 中有效)
有人知道如何做到这一点吗?
或者是否有其他方法可以将图像从 Android 设备下载并移动到应用程序资产?我只是试图从互联网上渲染图像。
我对这个框架很陌生,希望有人能帮助我,谢谢!
(我使用了谷歌翻译,对不起我的中文)
---
Hi
I'm trying to develop a basic app with the native framework: https://iot.mi.com/vela/quickapp/
Everything worked well and the app loads in my smart band, however when I try to use functions that require internet connection seems to not work, I'm trying to fetch an <image/> from internet but it doesn't load, I also tried loading data from a https API with @system.fetch but doesn't work neither.
(Despite it works only in the emulator IDE)
Is there somebody that knows how to make this work?
Or if also there is an alternative to download and move the image from the Android device to the app assets?, I'm simply trying to render an image from internet.
I'm new with this framework, hope somebody can help me out, thanks!
(I used google translator, sorry for my chinnese)