Tutorials & Examples

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

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: 673
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: 1,074
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: 669
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,200

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,646
  • HttpUtilsExample.zip
    7.8 KB · Views: 6,070
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,530

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: 1,087
  • Sudoku_lib.zip
    7.5 KB · Views: 1,185
  • SudokuSolver_Library.zip
    5.8 KB · Views: 1,164

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?
 
Top