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...
link: GetPathFromContentResult()
but as I have experienced
Erel's GetPathFromContentResult() demo works...
link: If you want to use the path and filename then you can check the content of the picture-folder...
link: demo works (solidly)
with remarks about the issue that it DOES NOT work in all cases....
B4A Code Snippet Get the path to media files returned from ContentChooser - Erel    
Jul 24, 2022   
(10 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...
link: When using "GetPathFromContentResult" I receive an error on the line "Cursor1...
link: You don't need to call GetPathFromContentResult if you want to copy the file.
You should...
link: Helo. I have a problem. When I use GetPathFromContentResult It return null. This is code
Sub...
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...
link: GetPathFromContentResult is problematic and is not guaranteed to work.
You don't need to use...
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....
link:
GetPathFromContentResult = broken code. Don't use it.
The user can choose a resource...
link: You can skip using GetPathFromContentResult by copying the file to DirInternal or a writable...
link:
You can skip using GetPathFromContentResult by copying the file to DirInternal or a writable...
B4A Question ExoPlayer not play local file... - nicieri (first post)    
Jul 2, 2024Solution:
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, 2022Every bit of code in the first post is wrong. The permission declaration is wrong. GetPathFromContentResult is wrong....
link: . GetPathFromContentResult is wrong.
it is obvious that my code is wrong and hence not yielding the desired result...
link: /file/45"
Dim dm As String = GetPathFromContentResult(uri10)
Log(dm) ' return...
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, 2021Have you seen cases where it fails and GetPathFromContentResult works?...
link:
Have you seen cases where it fails and GetPathFromContentResult works?
Could be. I wrote...
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...
link: GetPathFromContentResult.
If an InputStream is not enough for your requirements then copy it to a temporary file...
Page: 1  
2  
3  
4  
5  
6  
7