Tutorials & Examples

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

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: 684

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: 846
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: 701
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: 665

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: 679
  • notFirst.jpg
    15.3 KB · Views: 596
  • second.jpg
    20.6 KB · Views: 602
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: 534
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: 889
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: 529
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: 982

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,377
  • HttpUtilsExample.zip
    7.8 KB · Views: 5,814
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...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…