On Mon, Oct 18, 2010 at 5:50 AM, Suresh Pal <[email protected]>wrote:
> 1. Here I am using 0 as id for the notification. Is it good in practice. > Since, I dont want to that this notification conflicts with other. > Store your notification IDs as constants so it's clear which is which and there are no conflicts. > 2. I have one doubt, about notificaiton ids, e.g. if i keep my > notifications id as 1 and some other application also have set that as 1. In > that case, will my notification be updated. or Android treats, application's > notifications differently. > Notification IDs are relevant only within your own app. Your IDs 1, 2 and 3 will not conflict with my app's IDs 1, 2, and 3. > 3. Is it necessary to add FLAG_AUTO_CANCEL flag in my notification. > It's only necessary to add flags that result in the behavior you want. > Because, I think this is used when notification will appear in the status > bar. But in my case, I have no UI. It means nothing will appear in status > bar. > I don't think you can have a notification that just makes a sound ... although I guess you could hack it so you automatically canceled it yourself. > 4. Currently there is one problem. When my notification makes sound, > sometimes it seems that it is supressed or destorted by any other sound or > event. I am not sure what is happening there. So, If anyone of you have some > idea that will be helpful. > Don't know what to tell you there, sorry. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

