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 return a URL that starts with content://... If you are just interested in showing the selected image... it is available): This code depends on ContentResolver and SQL libraries. Sub GetPathFromContentResult(UriString As String) As String If UriString.StartsWith("/") Then Return UriString... Dim Proj() As String = Array As String("_data") Dim cr As ContentResolver cr... B4A Example Getting file info using uri from content chooser or from received shared file - example - Nokia    May 4, 2020   (23 reactions) example of getting file property information from uri provided by content chooser or received file shared to the app. Curtesy of Erel’s example: Received Share. Shows File name, Mime Type, date modified, file size and a list of all columns from that particular content provider. updated code to show information from Gallery content.... B4A Question how to make views align vertically and shrink base on dynamic text content? - omarruben    Aug 8, 2021 Hi, I have a stack of views: imageview, label, and a few checkboxes that load its content dynamically (check the picture), how I can align them vertically ? avoiding blank spaces ? shrinking the height of each... B4A Code Snippet [B4X] B4XTable - Resize columns based on content - Erel    Apr 1, 2020   (8 reactions)   tags: xuiTable, b4xtable This code measures the required width based on the cells text and set it: Sub B4XTable1_DataUpdated Dim ShouldRefresh As Boolean 'NameColumn and NumberColumn are global B4XTableColumns that we want to measure For Each column As B4XTableColumn In Array(NameColumn, NumberColumn) Dim MaxWidth As Int For i = 0 To B4XTable1.VisibleRowIds.Size - 1 Dim RowId ... Share My Creation Analyse Clipboard and Dragboard Content. - stevel05    May 8, 2025   (13 reactions) Here are two utility apps that perform very similar functions. One analyses the content types of the clipboard, and the other analyses the content types of the Dragboard. 163931 163951 Useful to find out exactly what data to expect when importing into an app. External dependencies: AnalyseClipboard Hexview WebP AnalyseDragboard Hexview WebP DragandDrop2 The hexview is accessible via context menu on the middle column. I hope you find these useful, and please report any issues... B4A Question SOLVED - Phone Library / Content Chooser / Multiple MIMEs - Robert Valentino    May 12, 2025 Phone Library / Content Chooser public void ShowMultipleMIME(final BA ba, String MimeTypes...("ContentChooser not initialized."); Intent in = new Intent(Intent.ACTION_GET_CONTENT...(); if (ContentResolver.SCHEME_FILE.equals(scheme)) { Dir = "...(); } else if (ContentResolver.SCHEME_CONTENT.equals(scheme)) { Dir = anywheresoftware.b4a.objects.streams.File.ContentDir;... B4A Question [SOLVED]How to change the color of a B4XTable row according to content and then disable it? - Daniel44    Apr 6, 2020 Hi everyone! Well.. I'm working on a B4Xtable and I'd like to change X Row according to content.. Ex: I have the column "state" below it shows "Exists" and "Not Exists" and I need to change the row's color if it's "Not Exists" I've seen this post: B4XTable How do I change the color of a row ? and it paints the 5th Table Row . I need something like that but painting the whole row if it's "Not Exists" and then disable... B4A Tutorial Working with Calendars using ContentResolver (Query, Insert, Update, Delete) - DonManfred    Apr 11, 2020   (24 reactions)   tags: calendar it works using ContentResolver querying the ContentProvider available in Android. You can find... that it is probably better to use the B4A ContentResolver instead of building a new one just for the Calendars. I then decided to do the same with the ContentResolver. As the CalendarProvider is using different Tables internally there are a lot of Constants used (for each table a Content-Uti is needed... i will use "CR" for a short version of ContentResolver. The constants make it easy to Build... Bug? Issues with B4A/B4J HttpJob.Response.ContentLength - OliverA    Mar 31, 2024 In B4J and B4A, HttpJob.Response.ContentLength seems to always return 0 when using HttpJob.Head. In... Log("ContentLength = " & j.Response.ContentLength) Log(j.Response.GetHeaders) Log(j.Response.GetHeaders.GetDefault("content-length", "NADA")) Else....LogEvents = True to enable logging B4XPages events. ContentLength = 0 (MyMap) {accept-ranges=, access-control-allow-origin=, age=, cache-control=, cf-bgj=, cf-cache-status=, cf-ray=, content-length... B4A Example ContentChooser Example (select image at phone) - MarkusR    Aug 26, 2019   (26 reactions)   tags: Select, ContentChoo Here is a ContentChooser Example project to choose a image at phone for use in a activity with image view. it works with B4A 9.x and Android 8.1 https://www.b4x.com/android/help/phone.html#contentchooser https://wiki.selfhtml.org/wiki/MIME-Type/Übersicht... Page: 1   2   3   4   5   6   7   |