B4ASnippetUpdater
Check an update server, fetch and install a new app version
Check an update server, fetch and install a new app version
@nwhitfield · 2017-09-27
B4ASnippetFirebase
Get Firebase shortlink from long dynamic link
Code to get a shortlink from a long dynamic deeplink via "Firebase Dynamic Links REST API"
@fredo · 2017-09-25
B4ASnippethttp
Set HTTP Request Header with HttpUtils2
Set HTTP Request Header with HttpUtils2
@Erel · 2017-09-17
B4ASnippetContacts
Simulating Android App Contacts behavior
I have needed a kind of email address manager and I have added it the Android App Contacts behavior using a CustomListView, an sticky first char while scrolling.
@Manuel Martinez · 2017-09-11
B4ASnippetList- and scrollview
ScrollView properties
ScrollView properties
@klaus · 2017-09-08
B4ASnippetMenu
Change ACMenuItem Icon Color
A simple code to change the color of icons in ACMenuItem. Code can be used also to change another else BitmapDrawable
@Emme Developer · 2017-09-06
B4ASnippetAnimation
Mathemetics Pendulum
A not very useful animated pendulum.
@Erel · 2017-09-05
B4ASnippetAnimation
Animated Border
The CircularProgressBar class includes a generic animation code that you can use to create all kinds of animations.
@Erel · 2017-09-04
B4ASnippetB4A
Boolean as Int (as in C/C++/Python)
Boolean as Int (as in C/C++/Python)
@wonder · 2017-09-01
B4ASnippetGame
Block Stack - with source
I decided to post the source code for a simple block stacking game I''ve written using the libGDX library. It uses the shaperenderer to draw the blocks and stack, this isn''t the best way of doing it as I''ve read that the shape renderer batch is not the fastest, but it seems to work fine for my game. It''s a simple 2D version of Stack by Ketchapp. It''s very simple so I thought it might help people to learn basic libgdx commands easier.
@andymc · 2017-08-23
B4ASnippetAudio/Video
Intent: search and play song
With this intent, you can directly search and play any song from your device. No need to search for music files or requesting extra permissions. Get more info here: https://developer.android.com/guide/components/intents-common.html#Music
@Multiverse app · 2017-08-20
B4ASnippetSpeech
Voice Recognition with Resumable Subs
The ability of resumable subs to return values (added in B4A v7.3) makes it very simple to add voice recognition to your app.
@Erel · 2017-08-17
B4ASnippetFile handling
Sanitize Filename
Code to make sure a string complies with standard filename rules.
@fredo · 2017-08-07
B4ASnippetDatabase
Stored Procedure with Parameter IN / OUT
I have seen in several threads that they wondered how to perform and receive the results from stored procedures with IN / OUT parameters. There may be a procedure to call where we need to pass values and return a set (IN) or a procedure that returns a result (OUT).
@MarcoRome · 2017-08-02
B4ASnippetDialogs
CustomLayoutDialog with CustomListView
CustomLayoutDialog with CustomListView
@Erel · 2017-07-30
B4ASnippetGPS/location/maps [COORDINATES]
Distance Features [Coordinates]
I added a new feature to my apps yesterday, this feature show you as text how far you are from the other coordinate. This looks so: within 1 kilometer: very close More than 1 kilometer: near More than 5 kilometers: far More than 10 kilometers: 10KM, if 15 kilometers then 15KM
@Alexander Stolte · 2017-07-25
B4ASnippetGoogle
GoogleDrive via API V3
GoogleDrive via API V3
@mw71 · 2017-06-18
B4ASnippetFile xfer
Download image or file from a website
Download image or file from a website
@Erel · 2017-06-15
B4ASnippetColour
Color Picker 2
Code to create a simple color picker based on an image
@Erel · 2017-06-05
B4ASnippetTranslation/localisation
ResourceManager - load multiple string values named in an array
ResourceManager - load multiple string values named in an array
@Misterbates · 2017-06-01
B4ASnippetTranslation/localisation
Simple Multilanguage Rotine
I develop a simple rotine to translate language using text file like "NotePad"
@Humberto · 2017-05-22
B4ASnippetB4A
Prevent (unwanted) Screen Rotation
StateManager will save the vars (and restore) when screen flips from Portrait to Landscape (and back). However, as I have found, when a custom panel is in view, and screen rotates, it is dismissed and you have to start over (unless you like to create MUCH code to work around this). So, to avoid all this, I lock the screen to the orientation (either port or land) when the user first accessed the selected activity. This prevents the screen from flipping during the activity session. IF this activity DOES NOT call another activity, you may not require StateManager...
@Harris · 2017-04-24
B4ASnippetToast
DynamicToast Library and JavaObject
DynamicToast Library & JavaObject
@MarcoRome · 2017-04-08
B4ASnippetList- and scrollview
UltimateListView (ULV) - smooth scroll for PlaceItemFromTop
If you''re using ULV''s placeItemFromTop function, and you want the smooth-scroll option that other functions offer (e.g. JumpTo), here''s the code to do it using JavaObject, based on a suggestion from ULV''s creator, @Informatix
@Dave O · 2017-04-08
B4ASnippetInterop
Fetch URL from Browser for further use in App
Fetch URL from Browser for further use in App
@fredo · 2017-03-28
B4ASnippetImages
dotLine, dashLine and dashdotLine in ImageView
dotLine, dashLine and dashdotLine in ImageView
@BeneBarros · 2017-03-22
B4ASnippetGame
Archer (with sources)
Archer (with sources)
@BeneBarros · 2017-03-16
B4ASnippetPrint
Print Logo in NV ram with ESC/POS
Print Logo in NV ram with ESC/POS
@carloschueca · 2017-03-16
B4ASnippetStrings
Strip all Emoji-characters from a string
I needed a function that strips all Emoji characters but keeps language typical characters in a string.
@fredo · 2017-03-13
B4ASnippetContacts
Extract all contacts from both SIM and Phone
Extract all contacts from both SIM and Phone
@tigrot · 2017-03-08