Tutorials & Examples

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

Managing deployment of multiple applications on multiple devices with B4AServer

This is an example of how we can use B4AServer to manage the deployment and updates of multiple Android applications on multiple devices.

It works in the following way:
- The device...
 

OpenGL 1.7 RayPlane Intersection

So ive been messing round with OpenGL for a while now as discovered that OpenGL ES doesnt include a 'GluUnproject' function, which is rather pivotal for discovering world coordinates with Ray...
 

Absolute beginners guide to making a Net Server program

I am writing a manual for students using B4A and there seemed to be some people here wanting to connect their programs to a net server with SQL who have never done so before.

So hopefully some...
 

Attachments

  • CONNECT-TO-SERVER.zip
    9.8 KB · Views: 768
Last edited:

Developping using my old netbook

Hi guys,

I thought I wanted to share this with you. I found a perfect way to develop for my Android device.

I used my hardly used Toshiba netbook NB100 and made it dual boot: the second boot...
 

Intel Atom x86 emulator available

TextPaginator Problem

I am using the PageTurnView library & like it very much.

In my code I would like to destroy & create a TextPaginator object or at least clear the text buffer that was set within this object...
 

Programmatically Adding UI elements - for .Net users

Here's a little tutorial/sample project for users coming from .net

It shows how you can have one activity show lots of ui elements, some hidden, some not within the same activity...
 

Attachments

  • PanelExample.zip
    308.7 KB · Views: 857

Activity Translation

Hey All

I have been looking around here for some kind of Modul/Lib for translation of an activity.

So I made this Modul to ease the pain.

This Modul translate your hole activity with...
 

Attachments

  • translate.zip
    7.3 KB · Views: 743

Trial Tutorial

Hey everyone,

Here I will explain how you can make an evaluation/trial version of your app using an online database.
With this, the user will be able to open up the app x times. When 0 is...
 

Attachments

  • ServerPHP.zip
    739 bytes · Views: 916
Last edited:

Mobile Application Server - Open Source

I am posting this in this forum because I meant this for Android not PPC when I posted in the other forum.

-------------- Original Message --------------
Hello Everyone,

I have been working...
 

Created with Basic4android Logo

Hello Erel:

Do we have a Logo "Created by b4a" or similar to put it in our programs? It is a good idea to extend the use of b4a...
 

'Load More' in SqLite

How to show a query result page per page with a 'Load more ' button using LIMIT and OFFSET.
(LIMIT varies depending on how big the selection is)
 

Attachments

  • LoadMore.zip
    8 KB · Views: 775
Last edited:

RotatingNeedle

Finally managed to create first tutorial app with B4A, namely the rotating needle. Unfortunately the tutorial omitted to describe how to create and activate the buttons so it took a lot of...
 

Attachments

  • RotatingNeedle.zip
    1.2 KB · Views: 728

How to control how many installations of an App

The interesting 'Trial Tutorial' by XverheistX has given me another idea (non market app)

Example: It could theoretically happen that you want to sell an application to a given Company and have...
 

Attachments

  • first.jpg
    19.3 KB · Views: 732
  • notFirst.jpg
    15.3 KB · Views: 646
  • second.jpg
    20.6 KB · Views: 662
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...
 

Grouped Views States Example

Here you can see how to group several views together so that they all share the same pressed state. It needs the reflection library.

In the example you have a parent panel, and then some child...
 

Attachments

  • GroupViewsStates.zip
    15.6 KB · Views: 582
Last edited:

HttpUtil and Authentification

Hello,
i was in an dilemma, because i needed http authentification, but wanted to use the easy HttpUtils module instead more complicated HttpClient.

But its easy to extend HttpUtils. Pass...
 
Last edited:

StateListDrawable & States Tester

I made a little demonstrative app as a complete example of how StateListManager is used control combinations of states, and how to change either normal background images or 9patch background...
 

Attachments

  • StateListDrawable.zip
    111.3 KB · Views: 955
Last edited:

Which device are you using?

Just curious as to which device(s) other than the emulator are you using for testing your application. Phone or tablet? Which brand/model/where purchased,etc.? I used a borrowed Cricket android...
 

Frustrated Newbie!

Hi, just bought this software and thought I was ready to go. Made a simple form, one button, one label. When I try and view it via the emulator I get this error (in the emulator, it compiles...