B4ASnippetGPS/location/maps
WGS 84 reader
Code that reads Wgs84 coordinates DDmmss.ssss / DDmm.mmm / and DD.ddddd and converts to floating point coordinates
@booch34 · 2020-04-29
B4ASnippetFile xfer [INCLUDED]
Upload a file to your server with HttpJob and php[included]
Upload a file to your server with HttpJob and php[included]
@scottie · 2020-04-26
B4ASnippetFile handling
Delete oldest files, if no free space
Delete oldest files, if no free space
@peacemaker · 2020-04-25
B4ASnippetB4A
Swipe left-right between activities
To swipe left-right from one activity to another without panels, buttons or tabs.
@WN van Surksum · 2020-04-08
B4ASnippetNotifications
Change notification background color
Change notification background color
@Mrphone · 2020-04-01
B4ASnippetDatabase
SQLite - check table exists
SQLite - check table exists
@Alexander Stolte · 2020-03-22
B4ASnippetSlider
RoundSlider Min/Max Values
I''ve just changed the XUI Views Library to have Min/Max Properties editable at runtime
@advansis · 2020-03-11
B4ASnippetNotifications
Allow user to select custom notification sound and have complete control over playing it
Allow user to select custom notification sound and have complete control over playing it
@JohnC · 2020-03-11
B4ASnippetTable/Grid
B4XTable Tricks
1) Find navigation panel and switch positions with search filed 2) Add click event to page number, the pageButton event will open a dialog to specify a target page (you need to add a B4XDialog and set B4XTable1.CurrentPage = InputTemplate.Text) 3) Light theme for search field
@William Lancee · 2020-02-19
B4ASnippetImages
Resize Bitmap with a maximum Byte limit
Sometimes the images we use in our Apps are overly large. In some cases, images are entered by the user and therefore we do not know the size. And to manage them we need them to fall within a certain Byte limit. How to reduce them within the limit? Here is a code that allows you to redimension the images while maintaining the proportion and returning within the Byte mitie that serves us
@Star-Dust · 2020-02-01
B4ASnippetImages
LoadBitmapResize conundrum
LoadBitmapResize conundrum
@drgottjr · 2020-01-17
B4ASnippetAnimation [AGAIN]
Animation with SetLayoutAnimated [Again]
This is another example of using SetLayoutAnimated method that we can use to create animation.
@rraswisak · 2020-01-09
B4ASnippetAudio/Video
VideoRecordApp with FileProvider
VideoRecordApp with FileProvider
@Erel · 2020-01-07
B4ASnippetAudio/Video
FFT Test with source
A test program to detect sound. It acquires audio data from the microphone, performs an FFT and magnitude squared, then graphs the "bin" output.
@canalrun · 2020-01-06
B4ASnippetDate/time
TakeTime
A way to calculate the time taken by a part of source code (very simple and rarely useful but... I was tired of writing these lines every time).
@LucaMs · 2019-12-13
B4ASnippetDatabase
Clean SQLite database, if it grows much
Long working apps have DB that grows and grows. It must be controlled, when records qty is very big, and most old data should be deleted
@peacemaker · 2019-12-01
B4ASnippetAction Bar, Drawer, etc
Bottom Popup Drawer
Bottom Popup Drawer
@maddy · 2019-11-26
B4ASnippetAudio/Video
Choose audio file and play with MediaPlayer
Although the use case (see title) sounds trivial, it took some time to get the result. The search returned many hits on the topic, from which the last valid "Single Point of Truth" could be found. The obstacles were the read permission and the path provided by the ContentChooser. Thanks to Erel''s "GetPathFromContentResult()" the path format expected by the MediaPlayer could be determined.
@fredo · 2019-11-10
B4ASnippetWebView
WebViewExtra: Call B4A Sub from WebView
WebViewExtra: Call B4A Sub from WebView
@rraswisak · 2019-11-06
B4ASnippetOther
Get relative view position
These two subs will get the positions of a view relative to the activity, regardless of how many parent panels it is nested in.
@stevel05 · 2019-11-05
B4ASnippetGame
Sudoku Solver Collaborative Project
I created this as a ''lazy'' Sudoku solver and it developed a bit by adding in brute force auto-solving.
@rodmcm · 2019-10-24
B4ASnippetDatabase
Taking SquareRoot in SQL
SQLite doesn''t have SQTR as a standard function, so you would normally do this in code. There is a way though to do this in SQL with a CTE.
@RB Smissaert · 2019-10-22
B4ASnippetComms & Network
Testing for working Internet connnection
Testing for working Internet connnection
@Derek Johnson · 2019-10-06
B4ASnippetDatabase [''NOW''][SQLITE]
datetime[''now''] [SQLite]
datetime[''now''] [SQLite]
@aeric · 2019-10-03
B4ASnippetWebView
WebView and Particle.JS
Ever wondering my B4A app has nice looking background with animation, to be honest - i know nothing about live wallpaper nor how to create bitmap animation using canvas. I ever saw in the net, a page using nice animation called Particle.JS. It''s javascript code to generate the wonderful animation. So i made simple login page which use WebView as animation background.
@rraswisak · 2019-09-28
B4ASnippetFile handling [SOURCE CODE]
File Explorer [source code]
What distinguishes this from other explorers is that the upper beam (← back) it is not controlled as the other elements of the list (it always remains in place), always available and in view.
@T201016 · 2019-09-27
B4ASnippetB4A
Detect Current Orientation
This sub will assist you to determine the current orientation of your activity.
@DawningTruth · 2019-09-22
B4ASnippetUpdater
Update your App without using the Gplaystore
This app shows you how you can control the updating of your apps. It is a stripped down version of what we use in our production apps. We removed all our apps from the play store and developed this method. Please feel free to use/modify it.
@Jmu5667 · 2019-09-19
B4ASnippetOS
GetSDKVersion
Returns the SDK-Version of the device running this code
@DonManfred · 2019-08-23
B4ASnippetOS
GetSDKname
Get the name of an SDK release
@DonManfred · 2019-08-23