'SET - Type iIntent.SetType("application/vnd.android.package-archive")
'START - iIntentStartActivity(iIntent)
This Create a itent and start the intent
So if i understand correctly...when apk is downloaded, and run using StartActivity(iIntent), user install apk and apk exits...so user needs manually to start apk again.
Yes apk updates itself...so i have done this using httputils service:
- Download APK from Server
- Run APK after Downloaded
- User press button Install
- APK updates and user click on Finish button
- then user need manually to click to apk icon to start APK
So as i understand it is not possible to start my apk after autoupdate
App A wants to update and downloads the apk
App A starts App B which then will call the intent to install the new apk.
App B waits till the new app is installed an then it will start your App A again.
My 2 Cent which is pure theory. Don´t know if this will work.
Hello, mi name is Abraham, and
I've read the topic of downloading the .apk file with attention but I'm not knowledgeable enough with B4A to do it myself.
I like to do the same, I want to download an .apk from my website to my smartphone and then install the apk. Pls, can you help me
to do this in B4A?
Sorry..i was too late view this question....you need to use Download2Service to download file to download directory or tmp directory in your phone and then use intent tu run apk installer in B4A Code...it is simple...just search Downlaod2Service and intent install apk in this excellent forum there you find code examples.