SoyEli Active Member Licensed User Longtime User Apr 23, 2012 #1 Hello I'm trying to open a "screen shot" with ext ".jpg" File manager works good. I tried This with no result, can anybody help ? Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, File.DirRootExternal, "PF_Pic.jpg", False) iIntent.SetType("image/jpeg") StartActivity(iIntent) ERROR = android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/PF_Pic.jpg typ=Image/jpeg flg=0x20000 }
Hello I'm trying to open a "screen shot" with ext ".jpg" File manager works good. I tried This with no result, can anybody help ? Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, File.DirRootExternal, "PF_Pic.jpg", False) iIntent.SetType("image/jpeg") StartActivity(iIntent) ERROR = android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/PF_Pic.jpg typ=Image/jpeg flg=0x20000 }
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2012 #2 Your initialize line is wrong. It should be: Code: Copy Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW,"file://" & File.Combine(File.DirRootExternal, "PF_Pic.jpg")) iIntent.SetType("image/jpeg") StartActivity(iIntent) Upvote 0
Your initialize line is wrong. It should be: Code: Copy Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW,"file://" & File.Combine(File.DirRootExternal, "PF_Pic.jpg")) iIntent.SetType("image/jpeg") StartActivity(iIntent)
SoyEli Active Member Licensed User Longtime User Apr 24, 2012 #3 Thank you It's working Thank you for your help. Last edited: Apr 24, 2012 Upvote 0