Tutorials & Examples

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

App to log GPS information, display map and send by eMail

Hello,
This app is a sample to get GPS info, save into file, load list of tracks, show in map,
assign a photo and send map and log info in CSV format by email.
Also there is some code about saving...
 

Attachments

  • GPSlogSample .zip
    249 KB · Views: 1,787

My first class module - Settings menu panel - Feedback please

2014-01-29_20-17-39.png 2014-01-29_20-17-33.png Hi,

For an app i'm working on I've created this settings menu class. Currently it is used to set a global value called language in the main activity. Of course you...
 

Attachments

  • settings_menu.zip
    8.5 KB · Views: 499
Last edited:

Short tip for working with voice commands

Forward Word

So, while I'm building my first app, suddenly I came over this example from Erel. Great for my app but, as you may know, even though 75% of the worlds...
 

Attachments

  • muchWow.txt
    326.9 KB · Views: 475

Moving Things

I'm just playing but play along with me, here's a very simple B4a project which you can load up.

Please change it and post your version here.

I like to move it move it.

ian
 

Attachments

  • MoveThings.zip
    7.8 KB · Views: 533

Retrieve HTML content from WebView using WebViewExtras library

Hello,
The code example below retrieves HTML content from WebView via three different techniques: 1.) MenuItem 2.) LongClick 3.) PageFinished. The code calls addJavascriptInterface() &...
 

ActionBar / Sliding Pages tutorial

Attachments

  • ActionBar.zip
    14.1 KB · Views: 7,261
Last edited:

Designer anchors - Video example

This short video demonstrates how anchors can be used to build a flexible interface.
The small white arrows show the anchors settings.


This layout will properly scale to any...
 
Last edited:

Handling intents for images selected via a 'Share' menu

Thanks for your help Erel!!! I greatly appreciate your timely assistance, this active forum, the B4A community, and B4A itself!!! Gregg

Here's the Manifest file that incorporates two Intents...
 

Add border to Views and change Checkbox graphic

Here are a couple of routines that may come in handy.

The first adds a background to a view which can have a fill color, rounded corners and a border color. This is useful for picking out views...
 

Attachments

  • screenshot.png
    screenshot.png
    25 KB · Views: 3,310
  • AddBorder.zip
    8.8 KB · Views: 1,481
Last edited:

Simple ComboBox concept: WORKS!

hey guys... since we cant enter text but only select in spinner...
i have a small simple concept that can make it like our old VB combo box

its got to do with... aligning an edittext and a...
 

Attachments

  • MyComboBox.zip
    7 KB · Views: 927

Android 4.2+: ADB using USB & Developer Options

I recently ran into some issues after an update to my Galaxy S3 and after seeing a related post, I decided to write this quick tutorial. I didn't see information on this elsewhere in the forum...
 

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:

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,286
  • Full-Liibrary.zip
    503.5 KB · Views: 1,600
  • Audio.zip
    4.8 KB · Views: 814
Last edited:

Bluetooth Printing to HP Deskjet 100 Mobile

I took the BTPrint.zip and modified it to print to my HP Deskjet 100 Mobile using Bluetooth

Attached find a new Zip BTPrint-2.zip (did not want to confuse it with the other one) and a PNG files...
 

Attachments

  • BTPrint-2.zip
    6.9 KB · Views: 893
  • PrintOutExample.png
    PrintOutExample.png
    38.1 KB · Views: 806

Wrapping for functionality

This post is aimed at those who may be new to programming concepts as well as b4a.

There are a lot of posts on the forum about wrapping java libraries for use with B4a, but that's not the only...
 

Attachments

  • MsgBoxWrapper.zip
    10.9 KB · Views: 409
Last edited:

Send Text File using BlueTooth

I needed to send a text file created by my program to a users PC using Bluetooth.
Not finding anything exactly like this in the B4A forums I searched the web and came across this article...
 

Simple Push Framework

Attachments

  • PushDevice.zip
    8.6 KB · Views: 3,105
  • PushDesktop.zip
    6.3 KB · Views: 2,803
Last edited:

SQLiteLight four simple SQLite projects

Some users asked here for a simple SQLite project as an example to make their first steps in SQLite.
The already existing examples seem beeing somewhat complicated for beginners.

These...
 

Attachments

  • SQLiteLight1.jpg
    SQLiteLight1.jpg
    18.6 KB · Views: 6,071
  • SQLiteLight2_1.jpg
    SQLiteLight2_1.jpg
    41.1 KB · Views: 5,883
  • SQLiteLight2_2.jpg
    SQLiteLight2_2.jpg
    20.1 KB · Views: 5,151
  • SQLiteLight2_3.jpg
    SQLiteLight2_3.jpg
    16.4 KB · Views: 5,043
  • SQLiteLight2_4.jpg
    SQLiteLight2_4.jpg
    32.3 KB · Views: 5,421
  • SQLiteLight1.zip
    130.9 KB · Views: 283
  • SQLiteLight2.zip
    204.2 KB · Views: 248
  • SQLiteLight3.zip
    230.8 KB · Views: 236
  • SQLiteLight4.zip
    229 KB · Views: 271
Last edited:

Highlight selection in a standard ListView

I found some code on the internet that works with a standard ListView, an example is attached. I use ListView's all the time with large lists >3000 items and I will find this one useful.

It uses...
 

Attachments

  • ListSelectColor.zip
    7.1 KB · Views: 1,719

Instruction set , commands?

I have buy b4android book and also the compiler.
I search the site, and the book of course,but I can not find the commands for compiler in one place like a list with a description what do each...
 
Top