Tutorials & Examples

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

Make your app compatible with Android 5.0 devices

This is an old thread. It is not relevant if you are using newer versions of B4A.

In order for your current applications to run properly on Android 5.0 devices you need to:

1. Compile your...
 
Last edited:

How to use ABPhysicsEngine and GameSprite View together

Hi

I would like to share with you this small example on how to use ABPhysicsEngine and GameSprite View together.

I would like to thanks the authors for those greate libraries...
 

Attachments

  • theProject.zip
    145.3 KB · Views: 662
Last edited:

Game Physics: Gravity

Game Physics: Gravity

In this tutorial I will explain and exemplify through a simple "runner" game how to apply physics to any B4X object.
May it be a Panel, a Label, an ImageView...
 

Attachments

  • Sunset Run.zip
    22.7 KB · Views: 1,244
Last edited:

Running your apk as an extension on Google Chrome

I have just found this out and its such a marvel to share. These are the steps for a MS-Windows install

Step 1
  1. Download the ARChon runtime from...
 

Attachments

  • extensions.png
    51.4 KB · Views: 620

Rapid Debugger

Basic4android v3.0 includes a new debugger named rapid debugger.



The rapid debugger is a very sophisticated debugger with...
 
Last edited:

DialogView: A complete walk-through guide

Introduction

Since we discovered b4a I looked for a flexible and developer friendly dialog library with an extensive and versatile object model. Unfortunately I could not find...
 
Last edited:

A Binary Clock

Noting other than the B4A core lib required...
 

Attachments

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

BetterSlidingPanels - Nice sliding panels with page indicator

Based on Erels SlidingPanels example I created another version which is a bit more "touch friendly".

My changes:

  • Move panels while touching the screen and moving your finger...
 

Attachments

  • BetterSlidingPanels.zip
    13.9 KB · Views: 4,480
  • screenshot-1319099154643.jpg
    4.9 KB · Views: 5,047

Torch plus Morse code from the Flash and the Vibrator

The attached project has a dual purpose:
1. Send Morse Codes with the camera flash
2. Serve as a Torch

The Morse Code functionality might be useful when you are lost in mid ocean and need to...
 

Attachments

  • JHSflashMorse.zip
    84.4 KB · Views: 1,162
  • morseCode1.zip
    2.8 KB · Views: 925

Showing Google turn by turn

Hi,

Below some sample code to show directly Turn by Turn navigation instead of map:

Sub ShowNavigation (Latitude As String,Longitude As String)
'google place, just show map
Dim...
 

.Net FileTransfer - Implement AsyncStreams Prefix mode

Attachments

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

Android 5.0 Information and Resource Thread

Android 5.0 Lollipop is a pretty big update hence the major version number upgrade.
I wanted to make a thread to combine Android 5 SDK related resources since it is such a big update.
At the...
 
Last edited:

Another Analog Clock



See the attached project. It uses a library that wraps a project that you can find here. There are files in the Objects/res/drawable and Objects/res/values folders that this...
 

Attachments

  • AnalogClockB4A.zip
    125.8 KB · Views: 1,007
Last edited:

Android 4.2+: ADB using USB & Developer Options

I recently ran into some issues after an update to my Galaxy S3 and after seeing a related post, I decided to write this quick tutorial. I didn't see information on this elsewhere in the forum...
 

Analog Clock with Sound

Hi!

Since I've been messing around with trigonometry this week, I decided to give you guys an analog clock example. Enjoy!

B4X:
#Region  Project Attributes
    #ApplicationLabel: Analog Clock...
 

Attachments

  • analog.zip
    9.9 KB · Views: 1,163

Panel Blinking

Panels that blinks vertically and horizontally. Changes color/button/label/or any view for that matter.

EDIT 14 Nov 2014
Added modification to original Sliding Panels project by @Erel in...
 

Attachments

  • BlinkingPanelHorizontally V3.zip
    9.2 KB · Views: 664
  • BlinkingPanel.zip
    7.6 KB · Views: 666
  • SlidingPanelsUpDown V2.zip
    9.7 KB · Views: 653
Last edited:

Round Button - FunWithRoundButtons

Lib files are in the /files folder
 

Attachments

  • FunWithRoundButtons.zip
    93 KB · Views: 1,143

[Inline Java] Get The Method Name

Hi, there is attachment with example on how to get the method (b4a function - sub) name using Inline Java.
This can be useful in many cases, especially for error reporting - debugging, but there...
 

Attachments

  • GetTheMethodName.zip
    13.9 KB · Views: 607

Async task help

Hi expert
i'm trying B4A coming from Appcelerator.
It is very fast and simply

I try to use a scrollview populated from a sqllite db cursor with many records
my scrollview is very slow when...
 

How to Find a Wooly Mammoth Part 1 (Extending the B4A List object functionality using inline Java)

Given the following class and code someone new to B4A might expect a different result to the one which is actually produced by the following code and class definition.

The Pleistocene_Mammal...
 

Attachments

  • Inline Java And Lists.zip
    2 KB · Views: 381
Cookies are required to use this site. You must accept them to continue using the site. Learn more…