Tutorials & Examples

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

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: 582
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: 1,051

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,465
  • HttpUtilsExample.zip
    7.8 KB · Views: 5,894
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,384

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

How to write a sudoku solver

As the sudoku solving contest winner I will now explain the solution I created. I must say that my solution is highly based on a solution I found in a blog post from a canadian student on the...
 

Attachments

  • Sudoku.apk
    90.3 KB · Views: 965
  • Sudoku_lib.zip
    7.5 KB · Views: 1,054
  • SudokuSolver_Library.zip
    5.8 KB · Views: 1,040

Style guide for Android interface design

Sliding (Toolbox) panel?

Hi!

I was wondering if creating a panel(toolbox) with, let's say 6 buttons on it, a panel larger than activity.width ("with 2 buttons " :) ) is possible...
User is suppose to...
 
Last edited:

Working with Samsung Galaxy Tab

The Samsung Galaxy Tab is a neat Tablet running Android 2.2.

The following steps are required in order to connect it to the IDE.
- When the device is not connected, go to Settings -...
 

Listview Divider Line Color

How can i define the Color of the horizontal Lines between Listview Items?
 

Nice utity for wireless file transfers

SwiFTP Server
This utility allows you to transfer files or applications to a device that is not connected by cable to your computer.
You can find it by searching the Android market. When it...
 

File Path |Dir|Folder

I have filename.csv file contained two fields?
What folder do I have to copy my filename.csv file so I can access the csv file using loadcsv. eg.
Dim su As StringUtils
Dim Table As List
Table...
 

display and save select item or data to another view and panel tutorial

Hi all,

For those who wants to implement this handling/behaviour to his/her
app, take the example zip underneath.

Special thanks to Klaus, who made a nice solution for this.:sign0098...
 

Attachments

  • TwoActivitiesDisplayResultsViews1.zip
    8 KB · Views: 777

Voice Recognition and activity lifecycle

This might be obvious to some but it caused me some grief so hopefully I can spare someone else some grief.
When using Voice Recognition I have found that it defies the activity lifecycle. What...
 
Top