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

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

Notes on installing Android

More documents like this are at:  Android 1.5

4-Aug-11

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

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

Understanding asynctask

More documents like this are at:  Android 1.5

14-May-11

Understanding asynctask

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

.

Thank you for responding to the first 20 promotion!

More documents like this are at:  Android 1.5

11-May-11

Thanks again for those that have sent me the emails. The first set of printed books are out and available on Amazon now.

I am in the process of working with the publisher to mail the free books to those that have requested it here. They are not mailed yet.

I will keep you posted here as soon as they are mailed out.

Thanks again for your interest.

Click here for the complete message.

How to use PendingIntent

More documents like this are at:  Android 1.5

10-May-11

How to use PendingIntent

Pro Android 2: A Developers Handbook

More documents like this are at:  Android 1.5

7-May-11

Pro Android 2 is a detailed look at (java based) application development on Google's Mobile OS published by APress. The book is written by Sayed Hashimi, Satya Komatineni., and Dave MacLean. This book covers the Android API all the way to its current public release which is 2.1.

You can read more at this link.

Motorola Xoom WiFi

More documents like this are at:  Android 1.5

27-Apr-11

Motorola Xoom WiFi

An approach and source code for Android Widget Models

More documents like this are at:  Android 1.5

26-Apr-11

As you start working with widgets, you will quickly realize that they are stateless. Every call back to paint the widget is invoked and the process dismantled (unless you take reasonable steps to keep this process alive, if that were to be needed). There is no explicit or direct mechanism to ask the widget: "Hey, what did I paint you with the last time around?". This is essentially a valid question if the widget were to have a state. Such a state is typically (indirectly) maintained using a persistence mechansim such as files, shared preferences, SQLLite, or the internet itself.

This item has some example **drafty** source code to illustrate this.

app widget code snippets

More documents like this are at:  Android 1.5

26-Apr-11

app widget code snippets

>>>  Click here for the next set of documents