Tutorials & Examples

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

USB Serial service

Hi all,

My contribute to the community a USB Serial service, you can add more activitys...

If you like this please press "like"

Thanks

camolas
 

Attachments

  • UsbSerial_respose_service.zip
    9.7 KB · Views: 1,159

TTS service for 2 Activitys

Hi all,

My contribute to the community a TTS service for 2 Activitys, you can add more activitys...

If you like this please press "like"

Thanks

camolas
 

Attachments

  • Two Activites tts service.zip
    10.1 KB · Views: 556

Pebble Example

This is an example of how to build an app and sent intents to your pebble.
 

Attachments

  • PebbleExample.zip
    9.2 KB · Views: 651

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

Dynamic creating of views "retrieved" from a database (php + MySql)

If you are lazy creating views "by hand" or you simply want a "form" depending on a MySql table take a look at this small app.

Type in the Database and Table Name and the IP-Address of the server...
 

Attachments

  • GetCol.zip
    479 bytes · Views: 1,573
  • MySqlViews.zip
    7 KB · Views: 1,712

LibGDX Sensor Access

I'm currently messing about with libGDX and will be using the Accelerometer for input. I borrowed some code from the web and B4A'd it. It includes device rotation, orientation, resolution, X, Y, Z...
 

Attachments

  • sensors.zip
    5.2 KB · Views: 860
  • Screenshot_2014-05-08-20-00-15.png
    Screenshot_2014-05-08-20-00-15.png
    168.1 KB · Views: 727
  • axis_device.png
    axis_device.png
    17.2 KB · Views: 745
Last edited:

Calculator - RPN Calculator

This is an attempt to create a RPN calculator (Reverse Polish Notation - as per HP calculators). You can store (STO) and recall (RCL) values of register X. It will store and retrieve last value of...
 

Attachments

  • JHS_RPN_CALC_V2.zip
    387 KB · Views: 1,007
  • JHS_RPN_CALC_V1.zip
    387 KB · Views: 860
  • JHS_RPN_CALC_V3.zip
    389.6 KB · Views: 1,083
Last edited:

Slide Panel

Here another Slid Panel.
I use the Ultimate List View ( paid from Informatix ) to swipe control, but someone can adapt the gesture library.

In the first time no image will appear in background...
 

Attachments

  • SlidePanelHSP.zip
    17 KB · Views: 823
  • screen_01.png
    screen_01.png
    165.3 KB · Views: 1,191
  • screen_02.png
    screen_02.png
    172.4 KB · Views: 1,023
  • screen_03.png
    screen_03.png
    100 KB · Views: 1,065

QR Code - Reverse Engineering a QR Code

pic1.png


I am leaving this project here for now. The majority of the work has been done to extract the critical information of a QR code - it is reported in the text box to the right of the qr...
 

Attachments

  • JHSQRCODEREADV4.zip
    19.7 KB · Views: 1,211
  • qrcodev21ehm6.zip
    443.9 KB · Views: 1,246
  • qrcodev4elm5.zip
    206 KB · Views: 1,164
Last edited:

5 Card Poker Scoring

Hi all.

Here is a BAS module to do 5 card poker scoring. Its some ugly code but it works.

I have promised myself I was going to re-write this code for over a year but cannot seem to find the...
 

Attachments

  • cards.zip
    37.4 KB · Views: 1,032
  • poker scoring v0.91.zip
    10.2 KB · Views: 725
  • poker scoring v0.92.zip
    10.2 KB · Views: 830
Last edited:

GIF Movie Player

The attached project is an example using the XtraViews library.

If one of the classes in that library is called "MovieView" then let's play some animated GIF movies. :D


Have fun...
 

Attachments

  • GifMoviePlayer_Sample.zip
    59 KB · Views: 1,855
Last edited:

SQL Order + Where

What am I doing wrong

B4X:
oRst = SQL.ExecQuery2("SELECT * FROM Bustrip ORDER BY sort Asc WHERE bus = ?", Array As String (Main.find))
 

Listview

An example of using Listview.
Open and save dialogs.
Screen orientation.
Don't forget to twist.

Done on 7 inch tablet.
B4A 2.3
 

Attachments

  • List2.apk
    130.8 KB · Views: 520
  • List2.zip
    14.9 KB · Views: 672
  • unicode.zip
    3.1 KB · Views: 495
  • beer.zip
    2.1 KB · Views: 584

GIF FILE - 3 x ROTATING EARTH

pic1.png


An example of the rotating earth with 3 x image views displaying the same GIF file but each separated by 120 degrees from the other. You will need to download the GIF file from here...
 

Attachments

  • EARTH ROTATING.zip
    8 KB · Views: 1,058
Last edited:

ImageView

This program displays pics of the same size as the ImageView. Made on an 7 inch tablet.
Program is not ready to go. Need to create folder and place same size pics in folder.
My device info is...
 

Attachments

  • Pic4.zip
    6.7 KB · Views: 634

Clock - 24hr analogue clock

pic1.png


This was done just for fun. It is a 24 hour analogue clock/watch. Have used the GPS Example from @klaus as base for this clock.
JHS CLOCK V1 => a 24 hour clock running clockwise...
 

Attachments

  • JHS CLOCK V1.zip
    173.4 KB · Views: 1,184
  • JHS Clock Panels.zip
    19.6 KB · Views: 976
  • JHS CLOCK TIME TRAVEL.zip
    174.6 KB · Views: 948
Last edited:

Service and Sockets for beginners

I've made a very simple project which periodically connects to a VB6 Server.
The code is well commented with notes for programmers coming from VB6.

In this code I use once ExitApplication. It's...
 

Attachments

  • SocketService_3.zip
    29.7 KB · Views: 1,028
Last edited:

Random Numbers, Timer, ExitApplication

Random Numbers.
Timer.
ExitApplication.
 

Attachments

  • RandomNumbers.zip
    7 KB · Views: 979

Service Module Example

Service Module using CallSub.

A very simple example. I thought you had to use CallSub from an Activity, but had it backwards.
 

Attachments

  • ServiceModule3.zip
    7.2 KB · Views: 944

Tinyurl shortening

Here's a quick little example of how to shorten your urls using tinyurl.com.

Thanks to TDS, who provided the solution.
 

Attachments

  • TinyUrlSample.zip
    7.7 KB · Views: 498
Last edited:
Top