Hi guys, I tryed a lot to find the solution for this problem but was unssucessfull.
I´m tring to let the users update my app clicking a button. When the user clicks the button, the app download the lastest apk and call an intent to call the installer. The download part works fine, but when I try to call the intent I get a error message.
The code is :
I´m tring to let the users update my app clicking a button. When the user clicks the button, the app download the lastest apk and call an intent to call the installer. The download part works fine, but when I try to call the intent I get a error message.
The user device is allowing installtions of unknow sources...Erro de Analise - Ocorreu um problema ao analisar o pacote
The code is :
B4X:
Sub FTP_DownloadCompleted (ServerPath As String, Success As Boolean)
ToastMessageShow("Donwload ok!", False)
Dim i As Intent
Dim uri As String
Dim PastaDisp as String
PastaDisp = File.DirInternal 'here is where the apk is
uri = "file://" & File.Combine(PastaDisp, "NSCommander.apk")
i.Initialize(i.ACTION_VIEW, uri)
i.SetType("application/vnd.android.package-archive")
StartActivity(i)
End Sub