AndroidBook.com

Pro Android 3: Extensive Programming Guide for Android Tablets and Phones. (Understand, Explore, and Extend!)

See TOC    See Preface    See Kudos

"What if? Why not? Challenge the Convention! Let's do some incredible things!"  More Quotes

Recently changed documents

Understanding asynctask

More documents like this are at:  Android 1.5

23-Sep-11

Understanding asynctask

Notes on installing Android

More documents like this are at:  Android 1.5

23-Sep-11

A journal/notes on installing android versions over time, again, and again. Look through towards down for more and more refinement and information.

Publishing your app to the market

More documents like this are at:  Android 1.5

19-Sep-11

Publishing your app to the market

Code snippets

More documents like this are at:  Android 1.5

16-Sep-11

Code snippets

A kiddish Calc

More documents like this are at:  Android 1.5

16-Sep-11

This could be your first android project if you are learning. This demonstrates the following

How to create a layout with
  textviews
  buttons
  linear layout 
     vertical
     horizontal
how to gather controls
how to setup buttons
how to respond to buttons
how to read/update edit text controls

honoring the back stack across applications

More documents like this are at:  Android 1.5

11-Sep-11

honoring the back stack across applications

Mobile display of web pages

More documents like this are at:  Android 1.5

10-Sep-11

Mobile display of web pages

More notes on layouts

More documents like this are at:  Android 1.5

8-Sep-11

More notes on layouts

Heroku, Play, and Java

More documents like this are at:  Android 1.5

2-Sep-11

Heroku, Play, and Java

thought stream: dreamforce

More documents like this are at:  Android 1.5

2-Sep-11

thought stream: dreamforce

Understand Git Hub: it is becoming the essential component of your toolkit

Understand parcellable

More documents like this are at:  Android 1.5

23-Aug-11

Understand parcellable

Understanding Android Resource Arrays, Plurals, Configuration qualifiers

setting up an annonymous onclicklistener

More documents like this are at:  Android 1.5

16-Aug-11

setting up an annonymous onclicklistener

layout inflater and loading layouts dynamically

More documents like this are at:  Android 1.5

15-Aug-11

A little bit about layout inflater. loading layouts dynamically.

I have added a resource but it is not there in R.java

More documents like this are at:  Android 1.5

15-Aug-11

I have added a resource but it is not there in R.java

How to uninstall an android app

More documents like this are at:  Android 1.5

29-Jul-11

How to uninstall an android app

adt error on project name but no other errors

More documents like this are at:  Android 1.5

29-Jul-11

adt error on project name but no other errors

xml libraries for Android

More documents like this are at:  Android 1.5

5-Jul-11

Natively Android supports XML parisng using SAX/DOM using a class caleld XMLPullParser. This doesn't seem to support XSDs, or DTDs, or Relax NG. There are no native recommendations for XSDs.

An open source product called woodstax seem to support relaxng and DTDs but no w3cschema yet.

There seem to be possible to port xerces of Apache by importings its jar into your android project and then use its XSD support.

In search of pen based tablets

More documents like this are at:  Android 1.5

23-Jun-11

In search of pen based tablets

A good android interview question

More documents like this are at:  Android 1.5

28-May-11

consider that you are responding to a menu item


public class SomeActivity
extends Activity
{
//..other code

//a menu function
void respondToMenu1()
{
    //Say that I am going to do something a bit long
    //Show a progress dialog 
    ProgressDialog pd = new ProgressDialog(.....);
    pd.show();
    
    //do something that takes a few seconds
    doSomething();
    
    //Close the dialog to indicate we are done
    pd.dismiss();
}

//..other code
} //end of class

What is wrong with this code? How can you correct it? Are there multiple approaches? which is a preferred approach?

google tv

More documents like this are at:  Android 1.5

27-May-11

google tv

Scratch then and App Inventor Now

More documents like this are at:  Android 1.5

23-May-11

If you have looked at Scatch it is pretty cool. Looks like a similar idea with some common ancestry is being applied for android development. Checkout App Inventor

Can I include externally build java jar files such as JDBC jars in Android?

Game Engines for Android

More documents like this are at:  Android 1.5

20-May-11

Game Engines for Android

How to use a broadcast receiver

More documents like this are at:  Android 1.5

17-May-11

How to use a broadcast receiver

On Android, Soap or REST?

More documents like this are at:  Android 1.5

17-May-11

The quick answer seem to point to Jackson/JSON/REST. One can use GSON/JSON/REST if performance is not an issue.

If you are using SOAP, ksoap seems to be up there but there is a commercial like wsclient++ that seems pretty nice on first looks

When and a how process is reclaimed?

More documents like this are at:  Android 1.5

14-May-11

When and a how process is reclaimed?

How to print current thread information

More documents like this are at:  Android 1.5

13-May-11


public class Utils 
{
   public static long getThreadId()
   {
      Thread t = Thread.currentThread();
      return t.getId();
   }

   public static String getThreadSignature()
   {
      Thread t = Thread.currentThread();
      long l = t.getId();
      String name = t.getName();
      long p = t.getPriority();
      String gname = t.getThreadGroup().getName();
      return (name 
            + ":(id)" + l 
            + ":(priority)" + p
            + ":(group)" + gname);
   }
   
   public static void logThreadSignature()
   {
      Log.d("ThreadUtils", getThreadSignature());
   }
   
   public static void sleepForInSecs(int secs)
   {
      try
      {
         Thread.sleep(secs * 1000);
      }
      catch(InterruptedException x)
      {
         throw new RuntimeException("interrupted",x);
      }
   }
}

May 24th, Jacksonville, Pro Android 3 at Arc Sig

More documents like this are at:  Android 1.5

11-May-11

I am participating in a panel at Jacksonvile Architectre SIG

Here is the link

.

>>>  Click here for the next set of documents