Android Question Delete apk

Isac

Active Member
Licensed User
Longtime User
hi
I would delete the apk file after it has been installed?
I would avoid the apk file remains in the customer's smartphone

thank you
 

RauchG

Active Member
Licensed User
Longtime User
B4X:
    'APK Name auslesen und aus download löschen
     ListView1.Initialize("ListView1")
     fileList = File.ListFiles(sdRoot & "download")

     For n = 0 To fileList.Size-1
       file1 = fileList.Get(n)
       If file1.EndsWith(".apk") Then
         ListView1.AddSingleLine(file1)
         mAPKName = file1
       End If
     Next

     If mAPKName <> "" Then
       If File.Exists(sdRoot & "download", mAPKName) = True Then
         File.Delete(sdRoot & "download", mAPKName)
       End If
     End If


If the apk is installed, it is no longer needed.
 
Upvote 0

Isac

Active Member
Licensed User
Longtime User
Hi RauchG

which library should I use?

the variables fileList , files, sd Root as the initialize?

thank you
 
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
the variables fileList , files, sd Root as the initialize?

' Dim sdRoot As String
' sdRoot = File.DirRootExternal & "/"
' Dim fileList As List
' Dim file1 As String
' Dim ListView1 As ListView
 
Last edited:
Upvote 0

Isac

Active Member
Licensed User
Longtime User
Hi Erel

after I installed the apk I would delete it. If I send my apk to a customer via email and he installs it, after the remains the apk file into your smartphone and I would not want this.
 
Upvote 0

Isac

Active Member
Licensed User
Longtime User
I think it is appropriate to abandon this idea so you might create a password on a remote database, start the app checks the password on the server

Does anyone have any examples?

Thanks so much
 
Last edited:
Upvote 0
Top