Tutorials & Examples

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

Noobs Guide to Using AppCompat

I found myself increasingly frustrated by my attempts to use the all the amazing AppCompat libraries and tutorials only to end up with reams of Java errors.
So to help those who might have/be...
 
Last edited:

LayoutView: Automatic translation of layout views

Introduction

Internationalizing your app is nowadays the #1 task. Localized content if always preferred. LayoutView makes translating your layout views automatic and...
 
Last edited:

Designer Scripts Tutorial

Background

One of the most common issues that Android developers face is the need to adopt the user interface to devices with different screen sizes.
As described in the visual designer...
 
Last edited:

Share My Experience With B4A-Full Source "Youtube Download"

p/s: i have uploaded patch file audio.xml

you must replace this file to your core library folder
(Exam: C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries)

Thank @Erel and...
 

Attachments

  • youtubedownload-tob4a.zip
    239.2 KB · Views: 1,504
  • Full-Liibrary.zip
    503.5 KB · Views: 1,896
  • Audio.zip
    4.8 KB · Views: 1,065
Last edited:

MySQL: Backup/Recover Databases

So you have some nice MySQL databases but what about backups? Copying the db files is a very bad idea and will lead into corruption. Here's a small script (copy it to a Windows batch file =...
 

B4A Book – Paperback and Free ebook Upgrade Available

A new edition of B4A by Wyken Seagrave has just been released. It covers Version 5.02 and has many improvements over the previous edition.

It is available in 3 electronic versions: PDF, MOBI (for...
 
Last edited:

Userid/pw/Encryption: Best practice

I see a lot of code where user id's, passwords or other critical Information is stored inside the code. Problem here is that the code can be decompiled very easy and someone can extract the...
 
Last edited:

Simple Push Framework

Attachments

  • PushDevice.zip
    8.6 KB · Views: 3,402
  • PushDesktop.zip
    6.3 KB · Views: 3,143
Last edited:

Android Dropbox / OAuth Tutorial

Attachments

  • Dropbox.zip
    12.6 KB · Views: 2,759
Last edited:

Creating a simple C/C++ based B4A library with NLG

With this video I intend to show how simple it is to create a native based B4A lib, using my Native Library Generator.
For that purpose, I'll be writing and testing my code in Visual...
 
Last edited:

Getting help for Object and methods

The IDE Intellisense is wonderful for actually writing code but for browsing the available objects to see what is on offer it is a bit tedious so this afternoon I have knocked up this pretty awful...
 

Attachments

  • B4AHelp1.7.zip
    55.6 KB · Views: 657
Last edited:

Google SignIn Using WebView

I was in need of google sign in using PlayServices but cant find any wrapper for that in b4a,Then i found this solution.

Purpose of the Sign in app is to fetch details about the google account...
 

Attachments

  • googleSignin.zip
    441.1 KB · Views: 828

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,308
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,053

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: 660
  • Camera_With_Guides.png
    Camera_With_Guides.png
    36.3 KB · Views: 673
  • Lesson1Demo.zip
    2.2 KB · Views: 637
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: 618
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: 650
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,271
  • udp.png
    udp.png
    47 KB · Views: 1,194
Top