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. Intercepting / blocking all hardware buttons from working

Hi,

I'd love to prevent hardware buttons from working while user runs my
app. Perfectly all of them,
but any number would help :) I am not sure it's doable but maybe I
miss something, hence my
question.  For those wondering - "why?" - we got an app that does full
screen colorful animation
and users often run it and hand the phone to their babies as they can
stare at it for hours :)
but the problem is, kids accidentally press hardware buttons (usually
camera trigger, but
also Home or Search - depending on the device model). I'd love to add
the option to block
all keys beside one which can hardly be pressed accidentally.

-- 

2. Problem passing Parcelable to remote service

In my application i need to call a method of a remote service passing
my custom object. As explained in 
http://developer.android.com/guide/developing/tools/aidl.html
i have implemented the Parcelable interface and the result code is the
following: http://pastebin.com/83e3FqMV
The problem is when i call the remote method, i got this exception:


10-20 10:58:27.047: ERROR/AndroidRuntime(5898): FATAL EXCEPTION: main
10-20 10:58:27.047: ERROR/AndroidRuntime(5898):
java.lang.NullPointerException
10-20 10:58:27.047: ERROR/AndroidRuntime(5898):     at
android.os.Parcel.readException(Parcel.java:1253)
10-20 10:58:27.047: ERROR/AndroidRuntime(5898):     at
android.os.Parcel.readException(Parcel.java:1235)
10-20 10:58:27.047: ERROR/AndroidRuntime(5898):     at
it.domod.commons.interfaces.DeviceManager$Stub
$Proxy.sendCommand(DeviceManager.java:128)
......

I tried replacing my object with the MyParcelable found here
http://developer.android.com/reference/android/os/Parcelable.html and
i didn't got any exception.
I think that i have implemented correctly the Parcelable in my class
because if i put it in an Intent to start another Activity it works.
Also if i trace with logcat i can see that my object is correctly
deserialized in the service's method, but why this exception is
thrown? It is thrown inside the Activity thread.

If can be useful i can attach also the .aidl file or whatelse.

Thanks

-- 

3. is there a way to blacklist devices

4. Assistance requested for academic projec

5. signatureOrSystem premission

6. setuid equivalent for Android app

7. Cannot install on app on 1.6 device confusion