Tutorials & Examples

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

How to connect to your Arduino using B4A

I recently purchased an Arduino USBDroid. The spiel told me I could connect it to my Android phone, but that was about it! I eventually worked it out after a week or so, and a bit of luck :) and...
 

Attachments

  • Connecting your Arduino board to an Android Phone.zip
    258.8 KB · Views: 1,904

Better Sliding Panels with Transparent Top

First off, Erel is the man!

Attached is my result from below:

I researched through the forums and found that people were looking for a way to catch swipe events, without passing them down to...
 

Attachments

  • BetterSlidingPanelsWithTop.zip
    17.4 KB · Views: 1,170

How do they ... ? #4 (FR)

Here's a link to my new tutorial (in french):
Comment font-ils ? #4

The translation by Google Translate in english is horrible. The translation by Bing Translator is much better.
 

Fastest method to code/compile as a Linux user.

I found that B4A runs really well in VirtualBox (on a Linux host). Also, I downloaded an Ice Cream Sandwich iso file (generic_x86-20120909.iso) which can run in VB too. This is much faster than...
 

Create XML and Send to WCF Rest Service

Hello,

here is a small example how to make a xml and send it to a server which is hosting a wcf rest service.
Maybe it helps someone to start a bit faster with it...

Here a little...
 

Attachments

  • XmlBuilder.bas
    5.7 KB · Views: 739

XmlSax - Exposing the Parser at work

XmlSax - Exposing the Parser at work

I wanted to understand how the XmlSax worked so as to fully understand how to write the code to access the different elements.

Found an example on...
 

Attachments

  • MyXmlTest.zip
    6.6 KB · Views: 650
  • xml2_ide.png
    xml2_ide.png
    95 KB · Views: 596

Altering existing design.

How do you make changes to the basic layout (design) of a program? I opened the following sample file: DataBaseProgSample1.5.b4a I wanted to change the sizes of the edit fields, but when I...
 

A tilt shift Effect

A Tilt Shift effect for Basic4Android! Because of the pictures, the project is to big to attach to this forum but you can download it from my blog...
 

Help, access to localhost from buildroid virtual device

sorry, I don't see "not post questions in this sub-forum." please any admin can delete this?
 
Last edited:

B4A Article in Nuts and Volts Magazine

There is a nice "Getting Started" article in the August Nuts and Volts magazine:

Fred Eady, "Putting Basic4Android in the Driver's Seat", Nuts and Volts, August, 2012 (pp 68-73)

Baxter
 

Share files between emulator and PC

The canonical way to share files between emulator and PC is using
adb utility from android-sdk, but is a command line utility and is a little bit hard to use, you have to use adb push and adb...
 

EXAMPLE - Drag a panel of buttons or EditText

Here is a simple example of how to support dragging a panel of buttons or other views like EditText around the screen.

I extracted the code from one of my apps and added detailed comments. It...
 

Attachments

  • PanelTouchDrag.zip
    7.3 KB · Views: 1,381
  • PanelTouchDrag.png
    PanelTouchDrag.png
    23.1 KB · Views: 1,749

listview reading second line

I dont know how to get the second line returned from a listview

help is appreciated

reading from the manual:

However you can change it to any object you like by using:
AddSingleLine2...
 

LeadBolt Tutorial

Hi Everyone,

Is there a LeadBolt tutorial?

I just signed up with them and have no idea on how to start and add it to my app.

Thanks.
 

Completely new to Visual Basic language - How should I proceed?

Hi guys. I'm thinking about stat coding for android using Basic4Android but I've never even saw a code in Visual Basic.

I do code in C/C++, PHP.

How should I proceed? Should I just dive in...
 

Problems With App Closing On Back Button Press? (Tutorial)

Ok so this was one of the first issues I ran into when first starting in B4A. I want to write this tutorial to help people out that might have the same issues as I did. So lets start.

Whenever...
 

Class example - Galaxy system emulation

This "galaxy" example simulates planets movements based on the gravity forces.

The purpose of this example is to demonstrate the usage of classes in a graphical program...
 

Attachments

  • Stars.zip
    8 KB · Views: 1,291

Creating and Using a Virtual SD Card - Tutorial

Creating and Using a Virtual SD Card - A Tutorial

Here is a tutorial for creating a virtual SD-Card, copying your SD-card files and reading them. It includes screen-shots of each stage and a...
 
Last edited:

GSMA Doc: Smarter Apps for Smarter Phones

Any threads just for newbies?

Just getting started with BA4 and am very confused. I don't understand many terms and terminology. Have next to no experience with Java though am reasonably proficient with Basic.

A friend sent...
 
Top