0

my app is sideloaded which means it is not on google play store. when it comes to update, it requires users to manually download the apk and replace the previous.

is it possible that I can have majority of my code on my server and have app to pull then update itself? app would only have limited code in order to pull source code from server and all the necessary settings/permissions in manifest. this way I'll not need to send out a new apk too often.

i found similar example here and someone mentioned about dalvik, but I have no clue how those work...Can someone please tell me if this is doable? and with some examples.

Thanks

Community
  • 1
  • 1
user1865027
  • 3,505
  • 6
  • 33
  • 71
  • Yes, it's possible, it's just not easy. Will you be trying to do this even without user intervention? If so, that will be harder still. – Stephan Branczyk Jul 30 '14 at 00:15
  • yea...basically, i want my users able to update just like all other apps on playstore with auto-update checked. – user1865027 Jul 30 '14 at 00:23
  • do you have examples? – user1865027 Jul 30 '14 at 00:23
  • If I'm not mistaken, do you want to simulate the [incremental update that the Play Store has](http://androidcommunity.com/google-play-store-incremental-smart-app-updates-now-live-20120816/)? Or do you want to have auto-update? Apparently these 2 things are related, but different. – Andrew T. Jul 30 '14 at 00:27
  • i have no idea what incremental update is. I just want to have auto-update. the idea is for user to update to the newest version without doing anything. just like auto-update with no new permissions. – user1865027 Jul 30 '14 at 00:31
  • sideloaded apps require user to download the apk then install. not a really ideal way for user to update – user1865027 Jul 30 '14 at 00:33
  • Check this: http://stackoverflow.com/questions/4604239/install-application-programmatically-on-android – lowselfesteemsucks Jul 30 '14 at 00:38
  • I believe it is possible, but a bit tricky, to run downloaded classes. However you would normally download dex code, not source! – Chris Stratton Jul 30 '14 at 02:30
  • @Ivica thanks for the help, but that is not what im looking for. – user1865027 Jul 30 '14 at 06:15
  • @ChrisStratton do you have an example? dex code is also what i heard. i found [dexmaker](https://code.google.com/p/dexmaker/) might be helpful but really no clue on how to use it... – user1865027 Jul 30 '14 at 06:18

0 Answers0