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

Android 1.5

0) 1.5 issues

4-May-09

1.5 issues

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.

Android Architectural Predicates

Android Architecture Pictures

android coding patterns

Android Configuration Changes, Restart Activities, Weak References

6) android design basics

18-Apr-09

android design basics

7) android tool options

19-Apr-09

android tool options

Android virtual devices

Another set of sample code for a live folder

10) app widget code snippets

22-Sep-09

app widget code snippets

Compare and contrast LiMo with Android

Creating a new android project

13) Exploring AlarmManager

19-Jul-10

You will find in this document


1. Basic research on Android AlarmManager API
2. Useful api references while working with AlarmManager
3. Not-so-intuitive truths about AlarmManager
4. Sample code
5. Downloadable Sample project
6. Finally what I call the AlarmManager Predicates

See the document for: Android Home widgets Research Notes

How best to migrate projects to 1.5?

How can I view source on an android browser?

How come I can't open XML wizard?

How to buy and use Dev phone 1?


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

How to start emulator manually

How to use a broadcast receiver

22) How to use PendingIntent

12-Sep-09

How to use PendingIntent

23) How to use toast

20-Aug-10

How to use toast

24) intent filters and uris

22-Oct-09

intent filters and uris

25) Key processing

4-May-09

Key processing

LiveFolders sample code from betterandroid

27) New XML file wizard

19-Apr-09

New XML file wizard

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

29) Notification Manager

5-Jul-10

Notification Manager

30) Pleasing Android Layouts

22-Sep-09

Pleasing Android Layouts

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.

Pro Android 3 is a very detailed (estimated at 950 pages) look at (java based) application development on Google's Mobile OS published by APress. This edition of the book is written by Satya Komatineni, Dave MacLean, and Sayed Hashimi. This book will cover the next public release of Android API (Release 3).

Pro Android Chapter Source Code as Eclipse Projects

It is finally here!!

Pro Android is a detailed look at application development on Google's Mobile OS published by APress. The book is written by Sayed Hashimi and Satya Komatineni. I am later of those two. This book covers the Android API all the way to its current public release which is 1.5.

You can read more about this at this link.

35) Saving an activity state

22-Jun-10

Saving an activity state

Security and cell phone development

37) Security and permissions

19-May-10

Security and permissions

38) Services and Threads

3-Jul-10

on services

Source code for Long Running Broadcast Service

40) Summarize Android FAQs

13-Aug-09

Summarize Android FAQs

41) The future of Android

18-Apr-09

The future of Android

This covers a) handlers b) sample code for handlers and messages c) offloading long processes to threads d) instantiating handlers e) getting messages to work with handlers f) working with threads

You will see here

research
links
sampel code
predicates on packages and libraries

Understand Java generics and Unlimited variable length arguments. Both these facilities are used in the Android AsyncTask class.

Understanding Android Resource Arrays, Plurals, Configuration qualifiers

Understanding long running services

It is often, occasionally followed by a wave of hand, that one advises or talks of "jar" (packaged java files that makes up an application or module) files as being signed.

Few times we ask back: "What do you mean by signed"?

What does it mean for a jar file to be signed?

Does this signing has parallels to how we sign physical documents? Do they differ? How do they differ if they do?

How do you establish a "pattern? of understanding for digital signatures so that you treat the subject abstractly just like when someone says they signed a physical document?

Click on the link above to read more...

48) Understanding wakelock

22-May-10


PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); 

PowerManager.WakeLock wl = pm.newWakeLock
     (PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag"); 

wl.acquire();   

   //..screen will stay on during this section.. 

wl.release();

49) Using Android Market

14-Aug-09

Using Android Market

what are android live folders?

51) What are APNs?

18-Apr-09

What are APNs?

what are homescreen widgets?

53) what are sdk tools?

13-Mar-10

what are sdk tools?

What is a good Map to use for writing Registries

55) what is android cupcake?

18-Apr-09

what is android cupcake?

56) What is Android NDK?

15-Mar-10

What is Android NDK?

What is API level and how is it used?

58) what is DDMS?

19-Apr-09

what is DDMS?

59) What is min sdk version

20-Apr-09

What is min sdk version

60) what is phonegap?

21-Jul-09

what is phonegap?

61) What is squirrelfish?

18-Apr-09

What is squirrelfish?

What is the add on feature and how does it work?

what is the android tool?

what is the uses-library tag?

65) what is titanium?

21-Jul-09

what is titanium?

66) what is xmlvm?

21-Jul-09

what is xmlvm?

whats up with android 1.5

where can I find a list of installed packages


Home
Dev Tools
Package Browser

Why is x86 support important?