Tutorials & Examples

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

Fidget Spinner HTML example (with assets files)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple Fidget Spinner example on B4A

ss.png


Ps: this example use a webview, a html code...
 

Attachments

  • fidgetspinner2.zip.zip
    457.1 KB · Views: 740

Fidget Spinner example

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple Fidget Spinner example on B4A

fid.png




Download Here

Ps: on the zip...
 

Simple punch the president game (Incomplete)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple game example to punch the president

1.jpg
2.jpg
3.jpg



This example...
 

Hide Packagename and UserAgent on Webview

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how hide the packagename and a user agent on a webview.

This example use the...
 

Attachments

  • esconderwebview.zip
    243.6 KB · Views: 746

Send Firebase notification via PHP (CURL)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple example of how send a firebase notification via php

PHP:
<?php
        $url =...
 

Attachments

  • firebasephp.zip
    882 bytes · Views: 1,117

Android Charts Framework

The purpose of this framework is to allow you to easily add different types of charts to your projects.
The current version supports pie charts, line charts and bar charts.

The framework is...
 

Attachments

  • Charts.zip
    9.6 KB · Views: 8,196
Last edited:

SMS and CALL_LOG permissions are no longer available

Google has changed their policy regarding the following permissions:
READ_SMS, SEND_SMS, WRITE_SMS, RECEIVE_SMS
READ_CALL_LOG, WRITE_CALL_LOG, PROCESS_OUTGOING_CALLS

Only the default phone or...
 

Version safe APK installation

As explained in this tutorial all store apps will soon be forced to target the latest SDK.

This means that we can no longer rely on the OS backwards compatibility features and need to...
 

Attachments

  • InstallAPK.zip
    131.5 KB · Views: 3,700
Last edited:

How to Install Android 8 on Virtualbox

I found a Youtube video showing you how to install Android 8.0 on a Virtualbox.
This gives you Android running on a desktop (virtual) machine, and it is all free!
(I knew you'd like the "free"...
 

Clv Simple Chat Example (adjustable text size)

Hi All.
Here is a very very simple example of how make a chat using clv.
the text and name is ajustable automatic, you can receive any text and the code will ajust using the correct size.

The...
 

Attachments

  • exampleclv.zip
    301.3 KB · Views: 1,230

B4x / PHP compatibility thread

A lot of developers like me use php as the backend component on a server to communicate with B4x apps. My intention is to create a thread with some "How to's" and best practices. Please feel free...
 

User's Guide

Last edited:

For beginners: Playing with views (dynamic)

This simple example shows how to add & access views (buttont, labels, imageviews, scrollviews) to get a nice & good looking layout.

I don't use dip (except at one code line) to have a "fixed &...
 

Attachments

  • PlayWithViews.zip
    71.8 KB · Views: 903

Filter the Contents of a ListaVieW By Sql code

This example shows how to filter the contents of a database and load the results in a listview using an edittext. for each letter entered in edittext the results are shown in the listview. It...
 
Last edited:

ImageDownloader - The simple way to download images

Attachments

  • ImageDownloader.zip
    8.1 KB · Views: 7,622
Last edited:

Basic difference between a Standard ListView and Amir_RecyclerView

During the introduction to Amir_RecyclerView (ARV), it was necessary to understand the basic relationships between data and display.

ListView is a view group that displays a list...
 

Attachments

  • Events_AmirRecyclerView.jpg
    Events_AmirRecyclerView.jpg
    107.7 KB · Views: 777
Last edited:

[B4X] ”The ultimate guide to proper use of animation in UX”

I happened to come across a very well written, and absolutely beautifully illustrated, article on how to best use animation in UX. I thought the forum might appreciate it, so here’s the link...
 

Change DataSet in Amir_RecyclerView

During the basic training in Amir_RecyclerView (ARV), a small test project was created, which may help RV newcomers to familiarize themselves with RecyclerViews.

Topic: "React to...
 

Attachments

  • ARV_Testproject_SimpleRv.zip
    10.2 KB · Views: 614
Last edited:

ScrollView example with a Panel higher than the screen

Attached you find an example with a ScrollView with a Panel higher than the screen.

The layouts are designed in the Designer, not in the code.

There are 2 layout files:
- Main with the...
 

Attachments

  • ScrollViewBigPanel1.jpg
    ScrollViewBigPanel1.jpg
    18.3 KB · Views: 23,395
  • ScrollViewBigPanel2.jpg
    ScrollViewBigPanel2.jpg
    28.6 KB · Views: 22,442
  • ScrollViewBigPanel.zip
    8.8 KB · Views: 1,629
Last edited:

Starter Service - Consistent & Single Entry Point

One of the challenges that developers of any non-small Android app need to deal with, is the multiple possible entry points.

During development in almost all cases the application will start from...
 
Last edited:
Top