Tutorials & Examples

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

Absolute beginners guide to making a Net Server program

I am writing a manual for students using B4A and there seemed to be some people here wanting to connect their programs to a net server with SQL who have never done so before.

So hopefully some...
 

Attachments

  • CONNECT-TO-SERVER.zip
    9.8 KB · Views: 618
Last edited:

About Box with OSL clickable links

Finally, I got my project completed. I learnt a lot of things about Android from this community. This community has generously provided source code to various UI's and more, without which I would...
 

Attachments

  • about_box_example.png
    about_box_example.png
    51.9 KB · Views: 285
  • AboutBox.zip
    17.6 KB · Views: 272

A trick for a badly closed application from a KILL TASK

I found it hard to find a solution to a problem that I think someone else could have
if you leave a service running with:

B4X:
#StartCommandReturnValue: android.app.Service.START_STICKY
or
B4X:
...
 

A tilt shift Effect

A Tilt Shift effect for Basic4Android! Because of the pictures, the project is to big to attach to this forum but you can download it from my blog...
 

A THANK YOU.. example in humility

:)

I just wanted to say thank you. I am new to coding:D, and trying to learn it. There is a lot of useful information if you search and dig for it.. no pain no gain LOL

Also some cool guys I...
 

A Binary Clock

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

Attachments

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

7 Segment LED Digital Clock

Attached project simulates a 7 segment LED digital clock. No libs other than the B4A core lib are required.
You can also try this analog clock here

DigitalClock.png
 

Attachments

  • DigitalClock.zip
    58.2 KB · Views: 1,632
Last edited:

5 Card Poker Scoring

Hi all.

Here is a BAS module to do 5 card poker scoring. Its some ugly code but it works.

I have promised myself I was going to re-write this code for over a year but cannot seem to find the...
 

Attachments

  • cards.zip
    37.4 KB · Views: 707
  • poker scoring v0.91.zip
    10.2 KB · Views: 449
  • poker scoring v0.92.zip
    10.2 KB · Views: 562
Last edited:

3D Spinning Cube

It is mostly based on this posting. It is a 3D spinning cube. The code is very simple (the lib does all the hard lifting). You can change the images of the 6 x faces of the cube by...
 

Attachments

  • b4aOpenGlesPhotoCube.zip
    9.2 KB · Views: 660
  • b4aLibFiles.zip
    7 KB · Views: 666
  • DemoRes.zip
    116.6 KB · Views: 698
  • TheJavaCode.zip
    4.9 KB · Views: 617
Last edited:

3D Interactive Starfield using only the Core library

Hey guys!!

I took this HTML5 example and adapted it to B4A.

I hope the code is self-explanatory, if not, I'll be here to help.
Once again I'm using panels, but you can use whatever...
 

Attachments

  • Starfield Example.zip
    7.7 KB · Views: 701
Last edited:

2D Car game Example

Hi All.
Here is a very simple example of 2D Car game.
I did so for study purposes. I'm sure this is not the correct way to create a game. :D:D


carro (1).jpg


You can download it...
 

2-Step verification - Sending email through Gmail

This isn't what I would call an actual tutorial, it's more like a very useful tip.

PLEASE NOTE: I'm not claiming that this is the only way to fix the issue, or even the correct way. But...
 
Last edited:

.Net FileTransfer - Implement AsyncStreams Prefix mode

Attachments

  • FileTransfer-Desktop.zip
    81.2 KB · Views: 4,509

.net error when starting b4a

When I try to start B4A, I get a .net error that says

"Unable to find a version of the runtime to run this application"

I tried uninstalling and reinstalling .net, but that didn't help...
 

(old) Google Maps Android v2 tutorial

Attachments

  • GoogleMaps.zip
    17.8 KB · Views: 11,430
Last edited:

'Load More' in SqLite

How to show a query result page per page with a 'Load more ' button using LIMIT and OFFSET.
(LIMIT varies depending on how big the selection is)
 

Attachments

  • LoadMore.zip
    8 KB · Views: 600
Last edited:

"How to draw S-curved arrows between boxes / rectangles"


(Usually I think I tend to post things like this in Chit Chat, but that's not searchable from the forum search engine so I suppose it's better...
 
Top