Is there a flowchart? How Users are Notified..

by jetlan...@gmail.com » Fri, 13 Mar 2009 18:22:16 GMT


Sponsored Links
 Hi All,

Need your help guys. I am currently trying to search for a FLOWCHART/
ILLUSTRATION with (at least easy to understand) explanation on HOW
USERS ARE NOTIFIED OF A NEW MESSAGE AND HOW THIS IS TRIGGERED TO SHOW
ON THE SCREEN (such as "3 New Messages Received") on the OS or
Application service level of Andriod.

Any references you can recommend? :)
--~--~---------~--~----~------------~-------~--~----~



Is there a flowchart? How Users are Notified..

by Dianne Hackborn » Fri, 13 Mar 2009 18:26:04 GMT


 There is really no such thing.  The first part is app-specific.  The second
part is completely encapsulated in the NotificationManager API and its
back-end StatusBarService class, which is pretty straight-forward: the app
creates and delivers a notification, the status bar displays it, and the
status bar implements the code to let you drag it open and see the full
details of its notifications.

On Fri, Mar 13, 2009 at 11:22 AM, jetlan...@gmail.com





-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. adjustResize not working in landscape mode

Hi,

I wanted a way to find out whether a softkeyboard is visible at any
given time.

If I set the windowSoftInputMode property to adjustResize, I receive
resize events in the portrait mode (onSizeChanged gets called). I use
these events to find out whether the softkeyboard is visible or not.
But I get no resize events in the landscape mode (Android SDK 2.1). Do
I need to set some property explicitly to get these events in the
landscape mode.

Thanks a lot in advance for the help.

-- 

2. Issue with launching second one

*>What am I doing wrong?*
Not meaning to be rude here, but pretty much everything... ;-)  You should
never create a new instance of an activity.  That is handled by the Android
OS.

You probably want to use the Intent constructor that takes a Context and a
Class object... that is what I always do when calling activities that are
part of my applications.

Assuming onClick() is defined in your activity, your code would look
something like this:

My onClick() looks like this
{
        Intent myIntent = new Intent(this, MultipleActivity.class);
        this.startActivity(myIntent);
}

If your onClick() is defined inside your activity then the this pointer is
your Context object, so that is what you pass in to the Intent constructor
and that is what you use to call startActivity.

Hope that helps,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Tue, May 11, 2010 at 2:55 PM, Ubuntu Explorer



> 

3. Kalo moto clic bagus ga sh?romnya susah ga ulik2 nya?

4. How to communicate from Javascript back to an app?

5. How to communicate from Javascript back to an app?

6. Get URL from Android Browser

7. Build.Manufacter on sdk < 4