B4A Question Object should first be initialized (Cursor). with GetPathFromContentResult() - Didier9    Jan 24, 2018 ._getpathfromcontentresult(main.java:649)
at b4a.example.main._cc_result(main.java:571...I can run Erel's example just fine, but when I integrate it in my app, I get a java.lang... B4A Code Snippet Get the path to media files returned from ContentChooser - Erel    Jul 24, 2022   (9 reactions)   tags: Adjuntar un File files
SubName: GetPathFromContentResult
Description: Content providers such as the media gallery... GetPathFromContentResult(UriString As String) As String
If UriString.StartsWith("/") Then Return UriString... B4A Question How to get full path from URI? - Inman    Feb 25, 2018 is I am trying to get path from URI of a folder and not file. Not sure if that is what is causing... card and so I cannot use the usual File.DirRootExternal to get the path and perform copy. Thanks to... is it returns a URI and not a physical path like /storage/emulated/0/ etc... While I can perform... path to the folder user selected so that he can make sure the path is right. And URI path like content://com.android.externalstorage.documents/ won't make sense to him. It has to be in the format... B4A Question CursorIndex Out Of Bounds Exception - Alexander Stolte    Jan 2, 2017 GetPathFromContentResult(UriString As String) As String
If UriString.StartsWith("/") Then...
End Sub
Yes i Know "GetPathFromContentResult" is not the best.
and here is the error... waiting messages (1)
main_getpathfromcontentresult (B4A line: 277)
res = Cursor1.GetString...)
at anywheresoftware.b4a.phone.Phone$ContentChooser$1.ResultArrived(Phone.java:843)
at anywheresoftware... B4A Tutorial select image from device and upload in server - Erel (first post)    Jun 30, 2024   (1 reaction) GetPathFromContentResult = broken code. Don't use it.
The user can choose a resource that is not stored on the device or that isn't stored as a file.... B4A Question ExoPlayer not play local file... - nicieri (first post)    Jul 2, 2024 Solution: Dim jo As JavaObject Dim cd As String = jo.InitializeStatic("anywheresoftware.b4a.objects.streams.File").GetField("ContentDir") Dim UriString As String = GetPathFromContentResult(FileName) ePlayer.Prepare(ePlayer.CreateFileSource(cd,UriString))... B4A Question Copy file - Erel (first post)    Jul 24, 2022 Every bit of code in the first post is wrong. The permission declaration is wrong. GetPathFromContentResult is wrong.... B4A Question Get a image from gallery and crop it in SDK = 26 - asales    Jun 20, 2018 , ParseUri("file://" & GetPathFromContentResult(SelectedPhoto))) i.SetType("image... the image uses "GetPathFromContentResult" (that don't works in SDK = 26, works fine....b4x.com/android/forum/threads/get-the-path-to-media-files-returned-from-contentchooser.39313/#content...I use this code below to open the gallery, get a image and crop using the internal tool to crop... Activity_PermissionResult (Permission As String, Result As Boolean) If Permission = Starter.rp... Wish [CLOSED] DirRootExternal2 - Erel (first post)    May 2, 2021 Have you seen cases where it fails and GetPathFromContentResult works?... B4A Question get filesize from ContentChooser - ilan    Jun 8, 2018 ")
Log(GetPathFromContentResult(FileName))
Log(File.Size(GetPathFromContentResult(FileName).Replace("/" & FileName,""),FileName))
'... GetPathFromContentResult(UriString As String) As String
If UriString.StartsWith("/") Then Return... Page: 1   2   3   4   5   6   7   |