Tutorials & Examples

Android development starts here. Please do not post questions in this sub-forum.

Fastest method to code/compile as a Linux user.

I found that B4A runs really well in VirtualBox (on a Linux host). Also, I downloaded an Ice Cream Sandwich iso file (generic_x86-20120909.iso) which can run in VB too. This is much faster than...
 

Fancy Code

Just like the clothes you wear, the code you write will also reflect your personal style.
Let's get fancy, shall we? ;)
B4X:
'Ugly:
     Dim validation As Boolean
     Dim sum = 1 + 1 As Int...
 

Fan Menu

After all the work I went through to make the simple pie graph, I noticed I had 90% of the code to make a "Fan Menu" type library so I went ahead and created the following prototype...
 

Attachments

  • fan_menu.zip
    221 KB · Views: 816

Fading label effect, SetColorAnimated < Android 3 devices

Attachments

  • SC20121114-113536.png
    SC20121114-113536.png
    27.7 KB · Views: 1,716
  • fading colors.zip
    6.9 KB · Views: 851
Last edited:

Facebook login no event raised fix

Hi,

If your Facebook and firebase configurations are all ok but the auth event is not raising or if you are getting An account already exists with the same email address but different...
 
Last edited:

Eyes follow example code

Hi all.
Here is a simple example of how make a eyes folow the touch on a panel.


images.png



another example

a source is attached
 

Attachments

  • move.zip
    100.4 KB · Views: 407

Exploring the b4x UltimateWebView with SithasoDaisy, #TailwindCSS + #DaisyUI UI Toolkit

Hi

This seeks to document my experiences of the UltimateWebView and the newest Sithaso Holdings UI kit, named SithasoDaisy, a TailwindCSS UI kit built on top of BANano + B4x.

Well, this is my...
 

Expandable list based on CustomListView

Last edited:

Expand the Eddittext row for row like WhatsApp

Hello, after 3 days work on it, it is finished.

The goal was to expand the Eddittextbox automatically like WhatsApp here:
Screenshot_20170910-212445.jpg

And i want to share my Code with you, to save time for...
 

Attachments

  • Screenshot_20170910-212445.jpg
    Screenshot_20170910-212445.jpg
    278.5 KB · Views: 659
  • Screenshot_20170910-212445.jpg
    Screenshot_20170910-212445.jpg
    278.5 KB · Views: 631
Last edited:

ExoPlayer - full screen feature

1627205322656.png



1627205353669.png


This example demonstrates how you can add a full screen button to a video. Clicking on the button, starts a new landscape activity and it then uses the native...
 

Attachments

  • Project.zip
    16.3 KB · Views: 145
Last edited:

Example of an app with a phone and tablet layouts

This example demonstrates how you can create an app that looks and behaves differently depending whether it runs on a phone or a tablet.

The app layout is simple.
The main screen includes three...
 

Attachments

  • PhoneTabletLayout.zip
    13.1 KB · Views: 3,539

Example of adding and calling B4X menu items

EXAMPLE - Drag a panel of buttons or EditText

Here is a simple example of how to support dragging a panel of buttons or other views like EditText around the screen.

I extracted the code from one of my apps and added detailed comments. It...
 

Attachments

  • PanelTouchDrag.zip
    7.3 KB · Views: 1,200
  • PanelTouchDrag.png
    PanelTouchDrag.png
    23.1 KB · Views: 1,593

Eureka: Access Genymotion Folders in Windows Explorer/Finder using Smart Disk Pro

Erels B4X Oveview from Walt's B4xGoodies - created with B4xgoodies Explorer using BVAD3

Erels B4A Oveview from Walt's B4xGoodies - created with B4xgoodies Explorer using BVAD3

Ola

Below is an overview of everything posted by Erel based on Walt's B4X Goodies. Hope it helps someone. We updated the OverView Creator to be now based on BANano, here is the post...
 
Last edited:

Encrypting information with RandomAccessFile library

RandomAccessFile v1.30 introduces two new methods named: WriteEncryptedObject and ReadEncryptedObject.
These methods are similar to WriteObject and ReadObject methods. The difference is that the...
 

Embedding files in compiled libraries

It is possible to embed files directly in the compiled libraries by following these steps:

1. Add the attached class module, JarFileLoader, to your code (Project - Add Existing Module).
2...
 

Attachments

  • JarFileLoader.bas
    837 bytes · Views: 850

Embed an Http Server in your Android Application

The HttpServer library is a new library, based on an open source project named Jetty. This library allows you to easily embed an Http server in your application.

Http server means that you...
 

Attachments

  • HttpServerExample.zip
    58.1 KB · Views: 7,345
Last edited:

ELM327wifi Terminal

- working with OBD ELM 327 Wifi, ex. V-Link interface.
 

Attachments

  • ELM327wifi_terminal.zip
    15.1 KB · Views: 474
  • log2.txt
    1.1 KB · Views: 432
  • ATWS.jpg
    ATWS.jpg
    64.5 KB · Views: 543
  • ATPPS.jpg
    ATPPS.jpg
    64.5 KB · Views: 529
  • ATMA.jpg
    ATMA.jpg
    81.1 KB · Views: 527
Top