Is it possible to load classes during runtime in A...
# android
t
Is it possible to load classes during runtime in Android? So can i compile a class and convert it to dex and than load this dynamically inside of a running android app?
😶 4
e
😶 • just like Java, there is DexClassLoader etc. • Google Play Developer Program Policy § Device and Network Abuse: "an app may not download executable code (e.g. dex, JAR, .so files) from a source other than Google Play"
🙏 1
t
My intention is to bring this to Android: https://gitlab.com/compose1/livecomposable So it is just for developers.
which under the covers works by pushing patch apks
t
Ok thank you very much. In my experience this nevery really works well. But maybe i could use it to make this working for compose.
t
Not sure. But i think my approach for desktop is a littlebit different. So you can define an hotrload entrypoint which must be a compose view. But every code in this file where the hotreload compose function is will be recompiled and reloaded on change.
Of course only the changed code which is called from that hotreload function will be executed and updated.