Recently changed documents

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

An example JEdit customization

More documents like this are at:  jedit

25-May-11

Enable Mac OS style menubar in Utilities -> Global Options -> Plugins -> Mac OS Settings

Change the default indentation to four spaces via Utilities -> Global Options -> Editing -> Indent Width and Utilities -> Global Options -> Editing -> Tab Width.

Change the default tab width when printing to four spaces via Utilities -> Global Options -> Printing -> Tab width when printing

Add line numbers by checking Utilities -> Global Options -> Gutter -> Line Numbering

Allow at most 80 characters per line by Utilities -> Global Options -> Editing -> Word wrap -> hard and Utilities -> Global Options -> Editing -> Wrap margin -> 80.

Change the default line separator to Unix via Utilities -> Global Options -> Loading & Saving -> Default Line Separator

Remove the annoying . that marks the end of a line by unchecking Utilities -> Global Options -> Text Area -> End of Line Markers

JEdit notes

More documents like this are at:  jedit

25-May-11

Notes on jedit.

learning drupal

More documents like this are at:  portals

25-May-11

learning drupal

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?

When and a how process is reclaimed?

More documents like this are at:  Android Core

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);
      }
   }
}

Ralph Masiello: Dragon Drawing Book

More documents like this are at:  Books

12-May-11

Ralph Masiello: Dragon Drawing Book

language: haskell

More documents like this are at:  oscon-2009

11-May-11

language: haskell

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.

Ride on Victories

More documents like this are at:  Shells: My Writes

7-May-11

Small and numerous,
Ride on those victories.

Restore heart,
borrow sail,
Small and numerous,  
Ride on those victories,
To lay the path ahead.

See not,
Despair and defeat.
Set aside,
Waylaid those be.

Small and numerous,
Recognize, Recall,
Ride on those victories.

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.

Vi

More documents like this are at:  Shells: My Writes

6-May-11

Visalita Viswambunan,
Vignulye,
Nuthana Vidhatalayyena,
Suthulan,
Gamaninchare Kannuletthi!
Talalupare Mannanan!

wish

More documents like this are at:  Shells: My Writes

6-May-11

May I wish
That power
In twice proportion
Bestow
Restraint

10 HTML Styling for Teens

More documents like this are at:  Computing For Teens

2-May-11

10 HTML Styling for Teens

05 Basic HTML for Teens

More documents like this are at:  Computing For Teens

2-May-11

You will learn the basics of html here. At the heart html is this simple.

00 Computing For Teens

More documents like this are at:  Computing For Teens

2-May-11

I am young. I am smart. I have time to spare. I am working at odd jobs right now. The pay is minimal. The hours are odd. How can I quickly turn around my situation and be employable?

Click here to see the answer

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 Widgets

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 Widgets

26-Apr-11

app widget code snippets

Home widgets Research Notes

More documents like this are at:  Android Widgets

26-Apr-11

See the document for: Android Home widgets Research Notes

what are homescreen widgets?

More documents like this are at:  Android Widgets

26-Apr-11

what are homescreen widgets?

http://www.caribbeanmusiccenter.com/artist/3

More documents like this are at:  Music

24-Apr-11

http://www.caribbeanmusiccenter.com/artist/3

Java memory settings

More documents like this are at:  CS-Java

14-Apr-11

Java memory settings

Can I specify multiple classes on an html tag

More documents like this are at:  CS-JavaScript

14-Apr-11

Can I specify multiple classes on an html tag

Bean Shell

More documents like this are at:  jedit

8-Apr-11

Bean Shell

I should spare jealousy when I cook shrimp

More documents like this are at:  Recipes

8-Apr-11

Lightly cook onions and shrimp (towel dried) in olive oil with adobo, salt, paprika, and black pepper.