Self updating app

后端 未结 3 1231
青春惊慌失措
青春惊慌失措 2021-01-30 03:12

TL:DR; version ;)

  • my app should run without user interaction (autostart etc works)

  • it should update itself (via apk) without any user interactio

3条回答
  •  执念已碎
    2021-01-30 04:00

    My suggestion is to use plugin mechanism instad of updating the app. You can dynamically load classes from the Web and run them inside your app without any user interaction. There is a lot of resources spread across the Internet:

    How to load a Java class dynamically on android/dalvik?

    http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html

提交回复
热议问题