Tutorials & Examples

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

Programmatically Setting AIRPLANE_MODE_ON and Off

ScrollView example

The ScrollView is a very useful container which allows you to show many other views on a small screen.
The ScrollView holds an inner panel view which actually contains the other views.
The user...
 

SQL Fiddle

There is a very useful online tool called SQL Fiddle that allows you to build test tables, populate them with data & run queries on them. This is great if you are trying to figure out how...
 

Using a PlayStation 3 controller with your Android Device

Using a PlayStation 3 controller with your Android Device
This tutorial is an extension of the B4A Generic Gamepad Support thread.

As you can...
 
Last edited:

Using Procedure in rdc Server

Hello Every Who can not know to use procedure with rdc there are two ways To do that

the first one is use Call keyword like this
B4X:
sql.getcategoryproducts=Call Getprodbycat(?)

this way...
 

B4A-Bridge a new way to connect to your device

There are several options to develop with B4A:
- Android emulator or a VM.
- Connect to a real device in USB debugging mode
- Connect to a real device with B4A-Bridge.

I recommend starting with...
 

Attachments

  • upload_2016-9-29_9-29-57.png
    upload_2016-9-29_9-29-57.png
    14.3 KB · Views: 6,721
Last edited:

B4A 7 Book in Russian

B4A is now available in a book that covers version 7.01.

For purchase visit http://pennypress.co.uk/b4a-russian/

ANDROID – это полюбившаяся во всем мире операционная система для мобильных...
 

LoadBitmap / LoadBitmapResize / LoadBitmapSample

This tutorial explains the differences between the three methods.

The bottom line is that the best option is to use LoadBitmapResize and set the container gravity, if possible, to Gravity.CENTER...
 

DoEvents deprecated and async dialogs (msgbox)

Starting from B4A v7.0 the following warning will appear for DoEvents calls:
DoEvents is deprecated. It can lead to stability issues. Use Sleep(0) instead (if really needed).

The purpose of...
 
Last edited:

Meld: Nice tool for diffing files and directories

This isn't really a tutorial but rather a recommendation for a diff tool. Sometimes you need to compare files, or even directories, and doing it manually is just too painful and difficult. I've...
 
Last edited:

Update your app to take advantage of the larger aspect ratio on new Android flagship devices

To deliver more engaging viewing experiences to their users, many Android OEMs are experimenting with new, super widescreen smartphones. Samsung has just announced a new flagship device, the...
 
Last edited:

XML Parsing with the XmlSax library

Attachments

  • XmlSax.zip
    10 KB · Views: 6,635
Last edited:

[B4X] Tips for B4X developers

After making more than 58k posts in the forum, I decided that it is a good time to build a list of tips and common mistakes. 12 points, in no particular order:

  1. Separate code from...
 
Last edited:

OpenCVforB4A: basic image manipulation: OCVMats,OCVCore and OCVImgProc

(This is the first of a small series of code-based tutorials that I will post regarding OpenCV for B4A. I will try to focus mainly on how to use OpenCV in B4A, tips, best practices...
 

Attachments

  • imageManipulations.zip
    268.8 KB · Views: 1,639

How to send/receive Data SMS

Last edited:

The effect of pressing a button

While I'm new. I can not find a full and detailed example. How to make a beautiful effect for button when I click button. I like using a gradient fill please. I did not use in my work designer...
 
Last edited:

Manifest Editor

Basic4android v1.8 introduces a new tool named Manifest Editor.
Every Android application includes a file named AndroidManifest.xml.
This is an XML file that describes the application for the OS...
 
Last edited:

HttpUtils2 - Web services are now even simpler

Attachments

  • FlickrViewer.zip
    10.7 KB · Views: 9,529
  • HttpUtils2.zip
    8.5 KB · Views: 11,931
Last edited:

Wrapping a small and easy 3rd party library with java

Attachments

  • 1.Original.zip
    179.4 KB · Views: 1,151
  • 2.Find the main source folder.zip
    3.4 KB · Views: 1,082
  • 3. use Rgenerator.zip
    3.1 KB · Views: 1,093
  • 4.Cleanup.zip
    2.9 KB · Views: 1,018
  • 5.Start of a new Eclipse-project.zip
    13.4 KB · Views: 1,011
  • 6.Working in Eclipse.zip
    91.7 KB · Views: 1,047
  • 7.New Wrapper.zip
    20.1 KB · Views: 1,083
  • 9.Resulting Library.zip
    5.2 KB · Views: 1,005
  • 10.Example CircularButtonEx.zip
    12.1 KB · Views: 1,030

Tutorial - Online Scoreboard

I noticed this being asked a few times so I thought I'd share the version I've created.

This implementation requires that you have a server with PHP and MySQL. I am by no means a PHP or MySQL...
 
Last edited:
Top