Tutorials & Examples

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

Xtraviews: MovieView Tutorial

Introduction

This is a DesignerCustomView control which is based on the native android movie view and will allow you to display animated gifs (transparent ones as well)...
 

MOBAC supports MapsForge for offline tiles

VideoView Alternative JavaScript

For those having problems with the Android Videoview, here is a possible alternative that may be worth trying.

It's a javascript open source HTML5 video player for playing videos in a webview...
 

Attachments

  • VideoJS.zip
    109.2 KB · Views: 2,357
Last edited:

Using CallSubDelayed to interact between activities and services

Until Basic4android v2.00 the way to pass information between activities and services was through process global variables.

CallSubDelayed makes it much simpler. It allows you to call a sub in...
 

Attachments

  • TwoActivities.zip
    7.2 KB · Views: 5,107

SmartHost - Lesson 1 - Buttons

Let's face it, making good looking buttons with core B4A is cumbersome and all those JPG's with different resolutions and colors are a real pain to manage, plus they bloat your application...
 

Attachments

  • IconPosition.png
    IconPosition.png
    78.6 KB · Views: 738
  • Camera_With_Guides.png
    Camera_With_Guides.png
    36.3 KB · Views: 737
  • Lesson1Demo.zip
    2.2 KB · Views: 686
Last edited:

SmartHost - Lesson 3 - Sliders

Sliders are a very useful and common control but are not part of the core B4A product. In this lesson we are going to build a slider control like the one shown in the screenshot.

To build a...
 

Attachments

  • Lesson3.zip
    7.6 KB · Views: 653
Last edited:

SmartHost - Lesson 2 - Toggle Buttons and Check Boxes

Toggle Buttons and Check Boxes are standard fare for any program but to make them look good you need StateListDrawables and bunches of Image files. With SmartHost you can use font characters or...
 

Attachments

  • Lesson2Demo.zip
    83.5 KB · Views: 686
Last edited:

Part 1: UDP Text Communication: Same Network

Hi there

I've just finished my first try with UDP, wow. With the attached code I have managed to get the app installed on two different android devices, connected them to the same wifi...
 

Attachments

  • UDP.zip
    5.1 KB · Views: 1,324
  • udp.png
    udp.png
    47 KB · Views: 1,254

Make a book

I want to make a book of 250 pages and browse in the form of images.
 

RoundBitmapWithBorder - inline java code

Attached project draws a circular bitmap within an imageview including an adjustable border (colour and width) around the image. Making use of inline java code. Only JavaObject V2.01 required...
 

Attachments

  • RoundBitmapWithBorder.zip
    85.6 KB · Views: 994
Last edited:

ASCII ART

Have done this purely for the fun of it. The project uses 70 ASCII characters to generate an ASCII ART image from the bitmap. The ASCII ART image is actually a label with the label's text set...
 

Attachments

  • b4aAsciiArt.zip
    21.2 KB · Views: 782
Last edited:

Optimization with B4A

OPTIMIZATION WITH B4A

A case where optimization is required:
One of the most time-consuming task in a RTS game is to compute paths for all units because of the number of units...
 
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: 687
  • JavaFlacEncoder2.zip
    342.4 KB · Views: 705
Last edited:

Very fast Andorid Emulator

VERY FAST ANDROID EMULATOR !

Hallo guys

i want to share with you my latest discovery

i am not sure this thread belong here but maybe it does because its an tutorial

so...
 
Last edited:

LibGDX - New Project Template

Hi guys!

Here's a minimalistic libGDX template which can be useful when starting a new project.
It includes a background, a title and an array of objects. It does not include any...
 
Last edited:

code for arduino and android communication .

hi guys . i am new in basic4android programing . im having difficulties on coding(its my first time) b4a.
im making a program that will light a led on/off using arduino and android . can someone...
 

Compiler Warnings

Starting from v2.70, Basic4android includes a warning engine. The purpose of the warning engine is to find potential programming mistakes as soon as possible.

The warning engine runs whenever you...
 

Variables & Objects in Basic4android

Types

Basic4android type system is derived directly from Java type system.
There are two types of variables: primitives and non-primitives types.
Primitives include the numeric types: Byte...
 

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

Paypal payment via php :-)

Last edited:
Top