Boolean as Int (as in C/C++/Python)
Boolean as Int (as in C/C++/Python)
@wonder · 2017-09-01
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
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
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
Sanitize Filename
Code to make sure a string complies with standard filename rules.
@fredo · 2017-08-07
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
CustomLayoutDialog with CustomListView
CustomLayoutDialog with CustomListView
@Erel · 2017-07-30
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
GoogleDrive via API V3
GoogleDrive via API V3
@mw71 · 2017-06-18
Download image or file from a website
Download image or file from a website
@Erel · 2017-06-15
Color Picker 2
Code to create a simple color picker based on an image
@Erel · 2017-06-05
ResourceManager - load multiple string values named in an array
ResourceManager - load multiple string values named in an array
@Misterbates · 2017-06-01
Simple Multilanguage Rotine
I develop a simple rotine to translate language using text file like "NotePad"
@Humberto · 2017-05-22
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
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
DynamicToast Library and JavaObject
DynamicToast Library & JavaObject
@MarcoRome · 2017-04-08
Fetch URL from Browser for further use in App
Fetch URL from Browser for further use in App
@fredo · 2017-03-28
dotLine, dashLine and dashdotLine in ImageView
dotLine, dashLine and dashdotLine in ImageView
@BeneBarros · 2017-03-22
Print Logo in NV ram with ESC/POS
Print Logo in NV ram with ESC/POS
@carloschueca · 2017-03-16
Archer (with sources)
Archer (with sources)
@BeneBarros · 2017-03-16
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
Extract all contacts from both SIM and Phone
Extract all contacts from both SIM and Phone
@tigrot · 2017-03-08
Localizator - Collect all strings not found in strings.db [B4A]
Localizator - Collect all strings not found in strings.db [B4A]
@fredo · 2017-03-06
Localizator - Export application strings to the log [B4A]
Localizator - Export application strings to the log [B4A]
@FrenchDeveloper · 2017-03-04
Print to a Bluetooth POS printer with matching codepage
Print to a Bluetooth POS printer with matching codepage
@KMatle · 2017-03-02
Rings (with sources)
Rings (with sources)
@BeneBarros · 2017-02-23
TabStripViewPager with FontAwesome / Material Icons
TabStripViewPager with FontAwesome / Material Icons
@Erel · 2017-02-22
Subs to Move or Swap List Items
I use Lists a lot and discovered there were no built-in methods to Move an item from one index location to another index location, and there is no method to Swap two items.
@Widget · 2017-02-16
CallSubDelayed & ScrollView.ScrollPosition
Often a Scrollview doesn''t scroll as you expect when you add a lot of views to it and then want to scroll it to the last added view. It seems as the message isn''t properly handled because the system is still busy with the SV itsself. The following code works for me. Just put the Scroll command to another sub and call it with "CallSubDelayed2".
@KMatle · 2017-02-16
Combining a Fontawesome Icon And Text on a View Using Richstring
Erelâs recent code snippet regarding Material Icons and Richtsring inspired me to write the following snippet combining a FontAwesome Icon, text and Richstring to put text on a label, button, edittext, etc. The following code which can be enhanced, is the entire project
@Mahares · 2017-02-10