Refresh Notification after deleting from user

by dillirao malipeddi » Thu, 05 Mar 2009 17:05:05 GMT


Sponsored Links
 while creating notification

set flags as FLAG_NO_CLEAR

then the notification remains after user clicks clear notification

 Notification my_notification = new Notification(R.drawable.iconl,
status_text, System.currentTimeMillis());

        my_notification .flags = Notification.FLAG_NO_CLEAR;

i think this will help you






-- 
Dilli Rao. M
ARIJASOFT
+91 - 9703073540

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



Other Threads

1. Master Clear From Code does not work

hi,

I am writing an application in which I need to call Master Clear under
a specifi condition.
But I am getting permission error.

My Code:
=======

AndroidManifest.xml
-----------------------------
  <uses-permission android:name="android.permission.MASTER_CLEAR" />



Calling Master Clear Code (similar to code present in Settings of
Android)
---------------------------------------------------------------------------------------------------------

    ICheckinService service =
            ICheckinService.Stub.asInterface(ServiceManager.getService
("checkin"));
    if (service != null) {
        try {
            service.masterClear();
        } catch (android.os.RemoteException e) {
            Log.e("MasterClear", "Some Error Here !!");
        }
    }

Observation / Error / Output (in DDMS)
-------------------------------------------------------
PermissionDenial : can't invoke masterClear from PID=965, uid = 10019



When I go to menu==>settings==>Application Settings==>Manage
Applications ==> <my app> ==> permissions, I dont see any permissions
assigned to my app which means the app does not have the permissions.
But I have set the permission for master clear ( <uses-permission
android:name="android.permission.MASTER_CLEAR" />) in the
AndroidManifest.xml but it does not seem to work. Can anyone help.

Thanks,
Amit

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

2. detecting application loss of screen control

How can an application detect when it's lost control of the screen?
The reason I ask is that my application has an appwidget whose visible
state should be consistent with user actions within the application.
In addition to the application exiting, I'd like to know when other
applications take over the screen.

Simply noticing in onPause() in the root activity isn't enough because
the user can, for example, press the home key or receive a phone
call.  Noticing in onPause() in every single activity is overkill
because the user will move between multiple activities in the same
application.

If this is documented or discussed already, I'll humbly accept an RTFM
pointer, but I didn't find anything when I looked.

Thanks.

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

3. Android contact type

4. Using drawable resources

5. ALSA audio only on the headphone and not on speaker

6. (WTA) MOTOROLA Cliq Price

7. Need a Prescription for adding a couple attributes to the Contact