DBUtils 2 - New Method - HasRecords
DBUtils 2 - New Method - HasRecords
@Harris · 2019-01-18
Convertir Numeros a Letras
Convert Numbers to Letters
@hacosta · 2019-01-14
Dual SIM call
Dual SIM call
@peacemaker · 2019-01-13
Ellipsize Alternative
Ellipsize doesn''t work on ListView Labels... So - I could switch to a CustomListView, but I''m lazy.... Instead, I thought I''d share the code I''ve been using for a long time to truncate text in ListViews.
@Computersmith64 · 2019-01-02
Copy from Dir.Internal to SD Card using ExternalStorage
I was looking for help on copying data from Dir.Internal to an SD Card using the ExternalStorage class and noticed a few other people couldn''t quite get to grips with it either. So for them here''s an example, which works for me. Took me a while to get something to work, but got there eventually. Works for me anyway.
@colboy · 2018-12-27
GTA style location overlay
An Android app to create a GTA-style text overlay when the user moves to a new location, displaying that location in the top corner of the users device for 5 seconds before fading out.
@andyr00d · 2018-12-24
Display Spotify Song Info
I wrote an app for myself to use when running. I always listen to Spotify and I would hear a song that I didn''t know. Rather than playing around with the phone to see what it was, I added some code to display it.
@ac9ts · 2018-12-21
SD: Switch with CustomView
I created SwicthView. I have noticed that you have created a similar object already on the ViewEx library.
@Star-Dust · 2018-12-13
Convert timestamp date to Brasil format
Simple code to convert a timestamp to Brasil format, easy to modify to another countrys format
@Douglas Farias · 2018-12-04
Check if a string is valid Json [isJson]
Check if a string is valid Json [isJson]
@Douglas Farias · 2018-12-02
Check if a string is CPF or CNPJ [is_CpfouCnpj]
Check CPF or CNPJ (Brasil - people or companies)
@Douglas Farias · 2018-12-02
Check if a string is Base64 [isBase64]
Code to check if a string is base64 hash.
@Douglas Farias · 2018-12-02
Share text messages in all social [and not] apps
Here is a code I developed with cooking and mixing of given recipies... Share text (you can include URIs) in every social app and more... Use it in activities.
@hatzisn · 2018-11-25
midiDeltaFromLong [delay midicode from time]
midiDeltaFromLong [delay midicode from time]
@Hans- Joachim Krahe · 2018-11-25
Unique combinations of m objects from a set of n
A fast combination algorithm
@William Lancee · 2018-11-18
Get device''s Google Account
I recently needed to check for device''s google account and I was not able to get it done with Erel''s code. I was not getting any results. So a little search on the Internet and a little mixing of the soup and voila
@hatzisn · 2018-11-17
Automatically set the text size
This is based on a nice new feature in Android Support library. It automatically adjusts the view''s text size to make it fit. You can call it with any of the following views: Label, Button, CheckBox, RadioButton, ToggleButton. Note that the size will change whenever you set the text.
@Erel · 2018-11-14
Check Internet Connection 2
I made some modification to be work fine even if you are connected to network but no internet
@HAH · 2018-11-10
DBUtils: clear table [delete all]
DBUtils: clear table [delete all]
@peacemaker · 2018-11-07
Ordinal Formating
I recently need to format numbers as 1st, 2nd, ... 121st, ⦠So I wrote these routines.
@Robert Valentino · 2018-11-05
adding Material icons to button text
The MaterialIcons font is handy for creating icon-only buttons. You can do this right in the Designer. If, however, you want to add an icon to some existing button text (say, a "Save" button with a checkmark before the "Save" text), you can''t do this directly in the Designer because the Material font only offers uppercase letters. So here''s a subroutine that takes any existing button with any existing text (e.g. "Save") and prefixes it with a Material icon. It uses CSBuilder to build a CharSequence containing both parts, then assigns that as the button''s new text.
@Dave O · 2018-11-04
Super-others: my 42 common usage subs
Common subs are usually placed into a code module. I decided to check all my projects that have "others.bas" code module, and i have found... 185 unique files. And much more common subs, but 42 pcs of them can be useful for community. Mostly the names are self-explaning, most are from the forum.
@peacemaker · 2018-10-22
Save and load CSBuilders
Using this class you can build CharSequences (the output of CSBuilder) and save the information required to build those styled strings. This allows to later load the information and create the same CharSequences.
@Erel · 2018-10-15
Predetermined graphs
I wanted a simple graphing function where I could define the range and intervals to sensible values but still have the luxury of the code determining the best fit from some derived values. As long as the maximum X and Y values was less than the maximum predetermined X and Y ranges then the code selects the best fit graph outline. This is easy if say you are measuring a sensor and know the maximum range for argument sake The code will select the best fit range and the predetermined intervals for that range, draw the graph outline and automatically label the X and Y intervals. The graph size is user set, but reduced sizes will require alteration of the interval label sizes to stop clutter An example of Multiple straight line point to point traces is provided
@rodmcm · 2018-10-14
FluidSlider [No Wrap] [B4A]
(B4A)FluidSlider [No Wrap]
@Star-Dust · 2018-10-10
Concept for VERY fast temporary IO
I briefly tested an idea that we can create a ramdisk from the actual very fast RAM, which from memory is normally closer to 900+mb/s On this disk, one could do any normal IO functions such read/write files (ie after creating it the code is basically unchanged), or even move an SQL dB, onto the disk and have pretty darn fast responses
@JohnK · 2018-10-10
MapRange A-B to C-D
SubName: Map a range of numbers from A-B to C-D and return the mapped value. Description: I use B4R a lot and that package includes a function called MapRange, I couldn''t find a version of MapRange in B4A or anywhere on the forum, so I found the formula online and I put together this little sub. Using MapRange you can map any range of number to another different range of numbers. For example 0 to 100 can be mapped to -50 to 50, 25 to 75, 2000 to 5000, -300 to -150 or whatever number range you need to return a value from. Your original number range can be any range you wish and not just 0 to 100 like above.
@Peter Simpson · 2018-10-03
Header with parallax effect for ULV
This is an example for UltimateListView showing how to create a sticky header (a header that is always visible) with a parallax effect (the image at the top is reduced as the list scrolls and stays centered). The header transparency changes over time so that the background is fully opaque when the image is no longer visible.
@Informatix · 2018-10-02
Get Random Numbers in a non repeating list
Get Random Numbers in a non repeating list
@Myron · 2018-09-30
Set any activity orientation (opposite to #SupportedOrientations)
SubName: Set any activity to the opposite orientation used in the app. Description: Using this line of code in your manifest allows you to set one (or more) of your projects activities to a different orientation than the default one which is set in the Main activity using #SupportedOrientations.
@Peter Simpson · 2018-09-20