Tutorials & Examples

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

[B4X] AS_TabMenuAdvanced + ASPopupMenu

This is a example how to use the AS_TabMenuAdvanced together with the ASPopupMenu.
1654121495794.png

For this example you need the 2 libs...
 

Attachments

  • AS TabMenuAdvanced + ASPopupMenu Example.zip
    450.7 KB · Views: 644
Last edited:

scrollview.panel.add views order question

Hi,

I have a question about scrollview.panel.add. when we add new panel, the new added panel located on top of former added panels. For example,

I add a panel a to scrollview, and then...
 

A Binary Clock

BinaryClock.png
Noting other than the B4A core lib required...
 

Attachments

  • BinaryClock.zip
    13.8 KB · Views: 481
Last edited:

Auto send KeyCodes.KEYCODE_BACK at runtime

Hi,
How to send / trigger the KeyCodes.KEYCODE_BACK at runtime without user clicking it

tks
 

Imageview related with sdcard getting images examples

Hi,

There are 2 versions to do that:

1. a combination of a button and an imageview.

2. touching the imageview(s) only.

Both ways, after touching the imageview or button, you first have...
 

Attachments

  • imageview_and_buttonclick_to_a_sdcard_example.zip
    5.6 KB · Views: 683
  • imageview_click_to_a_sdcard_example.zip
    5.6 KB · Views: 628

GitLab: Syntax highlighting for B4X files

When using an online repository such as GitLab, you can add a file named ".gitattributes" with the following content:

B4X:
*.bas gitlab-language=vb
*.b4j gitlab-language=vb
*.b4a gitlab-language=vb...
 
Last edited:

Mobile Application Server - Open Source

I am posting this in this forum because I meant this for Android not PPC when I posted in the other forum.

-------------- Original Message --------------
Hello Everyone,

I have been working...
 

Writing good documentation

When you finally finish your gee wiz killer app and want to write the documentation for it explaining how to use it, there are some things you need to consider.

First, find someone with no...
 

MultiDex - Solves the too many methods error

B4A v6.8 adds support for MultiDex compilation.

Enabling MultiDex:
B4X:
'main module
#MultiDex: True

With MultiDex enabled, the compiled classes are split into multiple dex files as needed...
 
Last edited:

OpenGL 1.7 RayPlane Intersection

So ive been messing round with OpenGL for a while now as discovered that OpenGL ES doesnt include a 'GluUnproject' function, which is rather pivotal for discovering world coordinates with Ray...
 

Add text to image and save it ("water mark")

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how add a text into a bitmap and later save it as image file.

www.jpg
...
 

WhatsApp Layout Example (Tabstrip + CLV)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple layout example, the app is whatsapp

This example use a clv and tabstrip

Screenshot_2016-03-13-21-39-37.png...
 
Last edited:

Ventilator Example (it's really windy)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how notcreate a ventilator in B4A.

On this example have, image...
 
Last edited:

DDMS - Dalvik Debug Monitor

Here is a tip for exploring the folders on the emulator and also its mounted SD-card (if you have added one like I did). I couldn't find a file-explorer in the emulator.

You can use a program...
 
Last edited:

Standard vs. Enterprise

What is (will be)the difference between the versions, Standard and Enterprise?

Tazer98
 

Design News B4A Online Class

Online classes featuring B4A-based Android Accessory, Bluetooth and TCP/IP applications will be offered by Design News beginning June 24, 2013. The 5-day run of classes will be presented by EDTP...
 

B4Acalendar

Probably not the most elegant way to do this calendar but it is working. It displays 42 days and will "grey out" the days of the previous/next month within the calendar month being displayed. The...
 

Attachments

  • B4Acalendar.zip
    31.4 KB · Views: 615
Last edited:

In App Purchases Setting Tutorial - New Google Play Console - Accurate as of 2020-09-26

Hey everyone,

This is a tutorial on how you can add In App Purchases to your Android App in the New Google Play Console.

1) Add GooglePlayBilling library in your project and the following code...
 
Last edited:

JavaFlacEncoder

This has been requested a couple of times on the forum and to get the ball rolling, here is an example of accessing the javaFlacEncoder with Javaobject.

Files and documentation are available...
 

Attachments

  • JavaFlacEncoder.zip
    192.7 KB · Views: 445
  • JavaFlacEncoder2.zip
    342.4 KB · Views: 433
Last edited:

CHART JS IN ANDROID

Hi i make this example how you can add Chart JS in your project.


I was use this example...
 

Attachments

  • CHARTJS.zip
    218.7 KB · Views: 427
Top