Tutorials & Examples

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

BitmapMeshView

You can play around with this. Posting the following:

B4A project (BitmapMeshView.zip)
Java Code (src.zip)

Amend the Java code to your liking.
Click on the blank screen once the project has...
 

Attachments

  • BitmapMeshView.zip
    209.8 KB · Views: 496
  • src.zip
    4.4 KB · Views: 428

Running B4A on a Mac - my experience

I hope this is the right sub topic to post this under. Didn't think it fitted anywhere else.
(Erel, is there a place for a General sub topic??)

I have recently written a blog post on my...
 

RC4 encryption to transfer data between Android and PC

Hi,

On one of my projects, I had to transfer sensitive data from Android to PC but - with RC4 encription.
I wrote a little code that I want to share with you...
Maybe Android supports RC4...
 

Attachments

  • rc4.zip
    47 KB · Views: 517
Last edited:

TIP: Replace your Floats by Doubles

It may happen sometimes that, if your dealing with complex non-integer calculations, your code may not perform exactly the way you want to. I came across this problem when I was trying so create a...
 
Last edited:

Create Custom Keyboard Layout for Coding

Sometimes it is really annoying to have keys we use so often to be lying in most inaccessible parts of keyboard.
And to make the matter worse they might also involve combination of shift etc...
 

Attachments

  • c0d3r.zip
    2.1 KB · Views: 342

Trial Period using FTP

Here is a method using FTP to create a trial period for your app. Since there is no local file with trial information, the user cannot defeat it by manipulating stored data. Also, FTP calls are...
 
Last edited:

B4A on Parallels M1 MAC

B4A works fine in Parallels windows on M1 MAC.
Here are compilation times for same, fairly large project:
Could Erel comment on significant differences in time execution of various parts.
In...
 

Creating a cross-platform "dialog" class with input validation

I'm currently developing an App that'll be released for Android and IOS. It presents "files" to the user, allows them to select a file and then presents the content for editing, and finally allows...
 

Attachments

  • ValiDialogs (0.02).zip
    15.7 KB · Views: 345
Last edited:

make your app more flexible AND/OR compatible with ios (b4i)

Here's a little sample skeleton for using classes vs activities and making your app more compatible with b4i ;))

It's more flexible (i.e. create multiple "pages" of the same form, a good example...
 
Last edited:

Simple time calculation based on EditText

On your form you use an EditText to input time. If you want to calculate with this, may be the following example will help:

B4X:
Sub AddTime(OriginalTime As EditText,HoursToAdd As Int,MinutesToAdd...
 

B4Acalendar

Probably not the most elegant way to do this calendar but it is working. It displays 42 days and will "grey out" the days of the previous/next month within the calendar month being displayed. The...
 

Attachments

  • B4Acalendar.zip
    31.4 KB · Views: 616
Last edited:

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...
 

[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...
 

Markdown to HTML conversion

I needed to parse markdown code as HTML, and since you guys have given me so much code I felt obligated to share it...
 

Attachments

  • markdown.zip
    69.5 KB · Views: 481
Last edited:

MidiSystem Example PlayOnly USB

This example allows playing a midi file to an external USB device which you can select. It also allows delaying the messages send to the usb device so you can hear them at the same time as the...
 

Attachments

  • PlayOnlyUSB.zip
    16 KB · Views: 562
Last edited:

Make sure you are enrolled in new 15% Play Store Fee

If you receive an email from google announcing the new 15% service fee (instead of 30%) that looks like this:

Google-Notice.png


I was a little confused of why do I have to create a group if I only...
 
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: 374
Last edited:

New user - best practices guides

Hi,

I'm a new user to the forum and I must say, the software is truly impressive. Just as an introduction, I live in Cape Town, South Africa and I am a "Mad Scientist"

I have written an app...
 

Automatic adjustment of system date and time through GPS (root only)

Attachments

  • GPS DateTime.zip
    10.4 KB · Views: 413
  • Android 6.png
    Android 6.png
    40.7 KB · Views: 477
  • Android 2.3.6.png
    Android 2.3.6.png
    13.9 KB · Views: 505

[B4X] B4X Online Tools - JSON Parser/QR Generator/Regex Parser

button.png button (1).png button (2).png

Full list of B4J Server Examples:

If there are other online tools that simplify programming with B4X...
 
Top