Hello to everybody,
I've already searched the forum but I didn't find a solution.
As the title of this thread, executing the following code will fail to install the apk programmatically in the first case while will work in the second case.
How can we handle properly apk filenames with # or similar chars (assuming we can't remove the # char) ?
Thank you in advance for your support.
Francesco
I've already searched the forum but I didn't find a solution.
As the title of this thread, executing the following code will fail to install the apk programmatically in the first case while will work in the second case.
B4X:
Dim intent1 As Intent
' this apk will fail to install (while manually install with a file manager will work)...
intent1.Initialize(intent1.ACTION_VIEW, "file:///sdcard/sample#fail.apk")
intent1.SetType("application/vnd.android.package-archive")
intent1.WrapAsIntentChooser("")
StartActivity(intent1)
' ...but if we remove # it will install without errors !!!
intent1.Initialize(intent1.ACTION_VIEW, "file:///sdcard/sampleok.apk")
intent1.SetType("application/vnd.android.package-archive")
intent1.WrapAsIntentChooser("")
StartActivity(intent1)
How can we handle properly apk filenames with # or similar chars (assuming we can't remove the # char) ?
Thank you in advance for your support.
Francesco