B4A Tutorial [B4X] TextEditor - Save and load external files - Erel    Sep 10, 2023   (38 reactions) This is a B4i and B4A example, which demonstrates various external files related tasks. 116714.... B4A Load external files, including online files, using ContentChooser. Save to an external target...-list-of-other-related-methods.129897/#content Allow other apps to view text files using this app... permission is needed. The minimum version was set to 7 (API 24), though it will probably work in older... external files, including online files, using DocumentPickerViewController: https://www.b4x.com... B4J Question File.Copy without changing the time ? - derez    Nov 21, 2014 File explorer copies files without changing their "last modified" property, File.Copy does change it. Is there a way to copy a file without modifying its "last modified" property ? I've found this link showing how you can set this property in java http://examples.javacodegeeks.com/core-java/io/file/change-file-last-modified-date-in-java-example/ As a workaround I could copy the file and then set the time to the original time. Can someone show me how to use... B4A Code Snippet [B4X] Set date format with locale - Erel    Feb 20, 2022   (12 reactions) Cross platform code to change the date format with an explicit locale: Private Sub SetDateFormat...("anywheresoftware.b4a.keywords.DateTime", "getInst", Null, Null) r.SetField2("dateFormat...("dateFormat").SetField("locale", locale) DateTime.DateFormat = format #End if... Dim format As String = "dd MMM, yyyy" SetDateFormat("en", "US", format) Log(DateTime.Date(DateTime.Now)) SetDateFormat("he", "IL", format... 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 Share txt files - Sergio GermánRassino    Nov 17, 2016 Hello. Thank you for your help for new users. I need to share a txt file by bluetooth and other aps... As MESShareLibrary share.sharebinary("file://" & File.DirRootExternal & "/SipAsistencia... to share, but it sends an html file with the txt file name included, instead of the txt file Dim share As Intent Dim archivo As String = "file://" & File.DirRootExternal &"...) share.SetType("text/plain") share.PutExtra("android.intent.extra.TEXT", archivo... B4A Library [B4X] [XUI] AS Settings - Alexander Stolte    Apr 7, 2025   (52 reactions) -with-plusminus.148105/ 142235 DatePicker https://www.b4x.com/android/forum/threads/b4x-as-settings...Introducing a new library that allows you to create your own settings page with minimal code... manage your settings. It supports booleans, free text, numbers, comboboxes, action buttons and more, giving you a wide range of options to customize your settings page. With this library, you can quickly and easily create a professional-looking settings page for your application or app without having to... B4J Library [B4X] [XUI] AnotherDatePicker - Erel    Sep 13, 2020   (22 reactions)   tags: Erel, DatePicker, XUI, b4a . This is a cross platform version of AnotherDatePicker custom view based on XUI library. https://www... can enter the date directly into the field. The field border color will change to red when the value... before 4.4 (stable) then you need to remove the reference to iDateUtils library and add the DateUtils code module instead. This is related to a bug fixed in B4i v4.4. - You might see a warning while.../threads/b4x-xui-anotherdatepicker.85160/page-2#post-581920). 1.02 - Fixes an issue with dates before... B4A Question Unparseable date - Pendrush    Feb 6, 2017   (1 reaction) I'm getting this error on some devices
java.text.ParseException: Unparseable date: "Sun, 05 Feb 2017 22:06:02 +0100" (at offset 0)
with this code
DateTime.DateFormat = "EEE, dd MMM yyyy HH:mm:ss Z"
Dim sDate As String = "Sun, 05 Feb 2017 22:06:02 +0100"
Dim lngDate As Long = DateTime.DateParse(sDate) '<- Error in this line
I'm unable to reproduce... B4A Library [B4X] AS WheelDateTimePicker - based on ASWheelPicker - Alexander Stolte    Jun 4, 2025   (15 reactions) (Callback As Object, EventName As String) Refresh SetDateTextOrder (WeekName As Int, MonthName... BugFixes 1.02 Add set Hour Add set Minute Add set Date 1.03 Add Refresh 1.04 BugFixes... BugFixes 1.07 BugFixes - AM and PM mode works now as expected BugFixes - setDate Number of days is now... get and set BackgroundColor MonthName now comes from the DateUtils 1.09 BugFixes 1.10 BugFixes... refresh at the beginning Faster loading time No crashes Add SetDateTextOrder - You can change... B4A Code Snippet [B4X] Bytes To File - Erel    May 24, 2020   (19 reactions)   tags: Image, Share Images, Bytes, B4X, B4X Bytes To File This code is no longer needed. Use File.WriteBytes / ReadBytes. Write an array of bytes to a file and read a file into an array of bytes. Sub BytesToFile (Dir As String, FileName As String, Data() As Byte) Dim out As OutputStream = File.OpenOutput(Dir, FileName, False) out.WriteBytes(Data, 0, Data.Length) out.Close End Sub Sub FileToBytes (Dir As String, FileName As String) As Byte() Return Bit.InputStreamToBytes(File.OpenInput(Dir, FileName)) End Sub Note that you can convert... Page: 1   2   3   4   5   6   7   |