Tutorials & Examples

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

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: 600
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: 573

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
    first.jpg
    19.3 KB · Views: 597
  • notFirst.jpg
    notFirst.jpg
    15.3 KB · Views: 518
  • second.jpg
    second.jpg
    20.6 KB · Views: 521
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: 442
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: 785
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...
 

TestMyApp - Fast way to test your apps via ftp

Hello!

I'm new here, new to android and new to programming, and this is my first attempt at creating an app which uh.. lets my test my apps!

It's divided in two parts, one that puts the...
 

Attachments

  • TestMyApp.zip
    4.7 KB · Views: 443
Last edited:

LibDisplay Module

This is a little module I just made while learning how to use the Reflection library. I was interested in the GetRotation method of the Display class. But I added two more methods...
 

Attachments

  • LibDisplay-0.1.zip
    2.2 KB · Views: 877

HttpUtils - Android web services are now simple!

OkHttpUtils2 is now available. OkHttpUtils2 is an improved version and is recommended for new projects. You shouldn't use HttpUtils (v1)!

HttpUtils is made of a code module and a...
 

Attachments

  • FlickrViewer.zip
    9.8 KB · Views: 3,242
  • HttpUtilsExample.zip
    7.8 KB · Views: 5,678
Last edited:

Google has made a site for Android UI design guidelines

ColorPickerDialog setcolor by default

hello and happy new year !
when I open a ColorPickerDialog I always black as default color is it be possible to put another color, I would like to colors.blue for example, or any other color it...
 

Basic4android Documentation as Windows Compiled Helpfile

Hi,

being a big fan of CHM-Files, making it faster for me to search and browse quickly through the documentation, I decided to dig out my old farhtml-converter and convert the basic...
 

ToggleButton on MenuItem

Hi,

Is it possible to use a kind of ToggleButton as a MenuItem?

I tried to us a bitmap variable and changed it after the menuclick, but the image is not refreshed, so this won't work...
 

Creating a linked list using Type keyword

The Type keyword is used to create your own types or structures. You can use such types to create simple structures that group some values.
However you can also use it to create more complex...
 

Attachments

  • LinkedList.zip
    4.9 KB · Views: 1,193

List of application intents

Is there a way to get a list of all installed applications with their intents?

Cheers,
 

Rearrange ListView lines

I have a ListView that I want to allow the user to rearrange the lines in it.

For example, my ListView is showing 6 lines

Apple
Orange
Rabbit
Toad
Umbrella
Zebra

I want the user to...
 
Top