0

I am wondering if it is possible to update qml android application remotely by changing qml file. To do this :

Qml should be read from the filesystem of the device dynamically instead embedding into the apk.

Is it possible?

dtech
  • 47,916
  • 17
  • 112
  • 190
Muhammet Ali Asan
  • 1,486
  • 22
  • 39
  • You can use a `Loader` to load files with any URL. You might change that URL if there is a new version. To bypass the cache you might add the timestamp to the filename. Then you only need a watch dog that will trigger a signal if a new file appears in the filesystem. – derM - not here for BOT dreams Jan 03 '17 at 11:16

1 Answers1

2

Yes it is possible, you will only embed a small loader, possibly including an updater into the APK, which can load a QML file from the device filesystem.

On startup you can check for a new version, if available download and save it and only then load the QML file.

Note that for any non-trivial application you will most likely need to define external files as an external module so you can have your custom external types resolve properly.

dtech
  • 47,916
  • 17
  • 112
  • 190