S Stephenz43 Member Licensed User Longtime User Feb 12, 2014 #1 Hello I'm new to android and having difficulty figuring out the syntax to reference a file I want to install from the phones download directory ( not the SDcard ). The file ( test.apk ) is downloaded to phone/download. the Dim iIntent AsIntent iIntent.Initialize(iIntent.ACTION_VIEW, "file://" ????????????? & "/test.apk") iIntent.SetType("application/vnd.android.package-archive") StartActivity(iIntent)
Hello I'm new to android and having difficulty figuring out the syntax to reference a file I want to install from the phones download directory ( not the SDcard ). The file ( test.apk ) is downloaded to phone/download. the Dim iIntent AsIntent iIntent.Initialize(iIntent.ACTION_VIEW, "file://" ????????????? & "/test.apk") iIntent.SetType("application/vnd.android.package-archive") StartActivity(iIntent)
Erel B4X founder Staff member Licensed User Longtime User Feb 12, 2014 #2 It is probably: Code: Copy iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "Download/test.apk")) Upvote 0
It is probably: Code: Copy iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "Download/test.apk"))
S Stephenz43 Member Licensed User Longtime User Feb 12, 2014 #3 Erel said: It is probably: Code: Copy iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "Download/test.apk")) Click to expand... Thank you ...that worked well Upvote 0
Erel said: It is probably: Code: Copy iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "Download/test.apk")) Click to expand... Thank you ...that worked well