Android Question FTP Plus Update APK

Cüneyt Gargin

Member
Licensed User
Longtime User
Hi... I have a project and we need to install new versions of apk from an FTP folder, if there is a new file there..

I connect to FTP Site and download APK.. After apk is downloaded, I use

Dim i as Intent
i.Initialize(i.ACTION_VIEW, "file://" & File.DirInternal & "/Trinoks/NewAPK/tmp.apk")
i.SetType("application/vnd.android.package-archive")
StartActivity(i)



it says

"There is a problem parsing the package"

and does not install new version...

Where is my problem ?
 

Attachments

  • FTP_Plus_UpdateAPK.zip
    40.6 KB · Views: 138

Cüneyt Gargin

Member
Licensed User
Longtime User
Hi..it solved my parsing problem.. but this time ... I have "the application ... stopped" problem.. I put a textwriter in main activity... and when I installed the newer version... Event the first textwrite string does not appear in the TEXT file... Only the previous before installation apk writes the lines to text file but the new version does not ... I mean the program crashes even before Main Activity_Create... I have 2 services.. WedgeService listening to DataWedge barcode reading.. Second is the intent listener for new version, as given in AppUpdating example... newinst2 service.. and I stopped them before I install new version... But still The new version crashes and stops... Is there any idea ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…