B4ASnippetDrawing
Basic 3D-Engine
A play around demo of a lightweight 3d-draw program. What it mainly does is display objects made of flat colored faces.
@kopperfeld · 2016-09-21
B4ASnippetOther
App Power Switcher (Source code)
Here is my problem. I have 2 tablets and one docking station that I use to control Plex on my TV. So while one is charging the other is on the table or couch or in my hands. So.... I figured While the one is charging why not let it do something? Like show a photo album? That is what this little program does. If the tablet is charging it starts one program and if is not it start another program.
@JakeBullet70 · 2016-09-20
B4ASnippetOS
Get List Of Installed Apps
This function logs a list of installed apps and their icons. I have had for a few years and could be modernized to the new b4a features but it works so. Right now it just logs the output but there is also remarked out code to add everything to a ListView
@JakeBullet70 · 2016-09-20
B4ASnippetProgress/Gauge/Loading
Temperature Indicator
Temperature Indicator
@BeneBarros · 2016-09-13
B4ASnippetOther
Get the APK signature at runtime
This code returns the SHA-1 hash of the signing key certificate used to sign the APK. It is the same value that you can see under Tools - Private Sign Key.
@Erel · 2016-08-30
B4ASnippetDatabase
Full Text Search (FTS) as it Applies to SQLite
SQLite supports Full Text Search (FTS3 and FTS4). The purpose of this snippet is to introduce some of its basic syntax and operators. This is a rudimentary introduction to FTS as I just recently started learning about it. FTS is a fast way to look for specific words or sentences in text columns of a SQLite table. You can also search the entire table with one SELECT statement. For newer applications, FTS4 is recommended.
@Mahares · 2016-08-29
B4ASnippetGame
Android Bitmap to LibGDX Texture
While highly unlikely, in some experiments you might come to a situation where you want to initialize a LibGDX texture object, with an android bitmap you currently have in memory.
@wonder · 2016-08-28
B4ASnippetSkype
Intent Call Direct Chat Skype
With this intent you can call in direct mode chat on Skype with skypeid that you want
@MarcoRome · 2016-08-23
B4ASnippetSkype
Intent make a Skype Video call
With this intent you can make a skype Video Call in direct mode with user
@MarcoRome · 2016-08-23
B4ASnippetSkype
Intent Skype Conference Chat
With this intent you can create Skype Conference Chat with all user you want
@MarcoRome · 2016-08-23
B4ASnippetPane(l)
Handle swipe left-right event
Handle swipe left/right event
@yiankos1 · 2016-08-15
B4ASnippetWebView
Using Webview files in the Assets Directory
How do I load a set of web pages in a Webview that are contained in the Assets Directory?
@Derek Johnson · 2016-08-12
B4ASnippetDialogs
PictureDialogs
A modern and simple looking dialog
@chrjak · 2016-07-31
B4ASnippetB4A
BooleanConv
Converts a Boolean to an Int or vice-versa
@LucaMs · 2016-07-29
B4ASnippetOther
get the current activity (from a code module)
If you''re in a code module, you don''t have the Activity object handy to reference. Here''s a simple sub (courtesy of Erel) that fetches the current B4A activity.
@Dave O · 2016-07-05
B4ASnippetToast
show toast message at position
With ToastMessageShow, the toast is limited to the bottom center of the screen. To show a standard Android toast message at a certain position on the screen, use this code instead.
@Dave O · 2016-07-05
B4ASnippetTooltip
show tooltip for view
The standard Android UI includes a way to show tooltips for controls by long-clicking them (press and hold). This creates a toast-like message near the control. So, for an Edit icon (the pencil), you can long-click and it will show a tooltip of "Edit". This is not directly supported by Android (there''s no hintText property), so I wrote some code to do it. Not enough for a class (just 4 subs), so here it is: To add a tooltip to a view, it''s a single line of code in the view''s LongClick event listener:
@Dave O · 2016-07-05
B4ASnippetTheme
theme colors for Material design
I''ve been playing with custom color themes for a Material design app (Android 5+), and have found (by searching the Android docs and B4A forums, and some trial and error) a few handy XML attributes for setting custom colors for certain Android UI UI elements.
@Dave O · 2016-06-26
B4ASnippetAction Bar, Drawer, etc
Remove Material Action Bar Shadow
The material action bar is elevated by default. The following code sets the elevation to 0 and removes the shadow.
@Erel · 2016-06-07
B4ASnippetGPS/location/maps
Start Map Intent for Google And Waze
Start Map Intent for Google And Waze
@Reviewnow · 2016-05-20
B4ASnippetFile xfer
How to download an image from internet and save in a folder
How to download an image from internet and save in a folder
@valentino s · 2016-05-12
B4ASnippetStrings
VB like Join functions.
VB like Join functions.
@JakeBullet70 · 2016-05-08
B4ASnippetCamera
Camera detection
This is just some simple inline Java code to check if a device has a Back facing camera, a Front facing camera, and a Flash (it requires the JavaObject library to be enabled).
@Johan Schoeman · 2016-05-01
B4ASnippetBarcode/scan
Using a USB wired Barcode scanner
Using a USB wired Barcode scanner
@Derek Johnson · 2016-03-30
B4ASnippetPDF
Multiline PdfJet
PdfJet is fantastic library by Warwound. Have a lot function but anyway is absent multiline management. With this code is possible resolve.
@MarcoRome · 2016-03-20
B4ASnippetIntent
Open Any File with Intent ( also from Server )
Open Any File with Intent ( also from Server )
@MarcoRome · 2016-03-15
B4ASnippetSMS
SMS Balloon Labels
SMS Balloon Labels view
@atulindore · 2016-02-26
B4ASnippetEditText/Textview/TextArea/TextField
EditText Max Length
EditText Max Length
@aeric · 2016-02-19
B4ASnippetDate/time
Simple Date Spinner
Simple Date Spinner
@aeric · 2016-02-16
B4ASnippetDatabase
How To Use SQRT and POWER in a SQLite Query
How To Use SQRT and POWER in a SQLite Query
@Mahares · 2016-02-15