Thanks again Mark Murphy for your reply,,, On Mon, Sep 26, 2011 at 8:41 PM, Mark Murphy <[email protected]>wrote:
> On Mon, Sep 26, 2011 at 2:37 PM, John Goche <[email protected]> > wrote: > > I would like to know whether it is somehow possible > > to create a popup window which does not take up the > > whole display area. I am asking because I need to display > > a message when an alarm expires but do not want to resort > > to notifications because they seem to be squished in the top > > right corner of the phone and I think would make it hard to turn > > an alarm off it it were a notification. > > Users are generally used to the notification mechanism. > Yes they are but if an alarm plays some sound and the user needs to turn the sound off because they find themselves in the middle of a meeting and forgot to turn the phone off or something then they need to be able to do it quickly and so a popup or window with a stop sound button seems to be more appropriate here I think. With the notification mechanism would I be able to play a sound immediately without waiting for the user to open up the notification and would such a use of android notifications be appropriate? > On the other hand bringing > up an entire window could obfuscate other applications. Give the user their choice via a preference. > Good idea. This could be a good feature for future implementations. > > > I guess > > there is nothing like HP/Palm webOS's notification mechanism > > on android (there you can pop up a window and the users can > > still keep on interacting with whatever app they were using or > > close the popup window)??? > > There is a Toast, but it will remain on-screen for only a few seconds. > You can also have an activity that is themed like a dialog (e.g., > Theme.Dialog), so it will not obscure the whole screen, though the > user will still need to press the BACK button or otherwise dismiss the > activity before returning to the underlying activity. > I tried following this approach and putting the following in my AndroidManifest.xml: <activity android:name=".AlarmExpiredActivity" android:theme="@android:style/Theme.Dialog"> but then the window is really small, the size of a toast or so, and I cannot get it to display the button from the XML file, so the user cannot click on it and cannot scroll. Is there a way to have a scrollbar in this theme or make the dialog big enough so the user can see the button below the message? Otherwise this solution seems amenable. Thanks, John Goche -- 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

