4 messages in com.googlegroups.android-developersRe: Notification Audio Icon in the St...| From | Sent On | Attachments |
|---|---|---|
| He Who Tries to Code | 15 Feb 2008 16:34 | |
| He Who Tries to Code | 16 Feb 2008 08:53 | |
| Peli | 16 Feb 2008 10:29 | |
| He Who Tries to Code | 16 Feb 2008 11:08 |
| Subject: | Re: Notification Audio Icon in the Status Bar not updating![]() |
|---|---|
| From: | He Who Tries to Code (tsuc...@gmail.com) |
| Date: | 02/16/2008 11:08:50 AM |
| List: | com.googlegroups.android-developers |
No its neither of the three you mentioned. What I'm talking about is the icon that you see if you lower the volume to 0. Use the volume button and lower the volume to almost minimum you'll see a vibrating phone in the status bar. This indicates that the phone will only vibrate. Then lower it one more notch and you'll see a crossed off note (at least in the new SDE). Thats what I'm refering to. So if I use the code listed above in my original post it will lower the volume. I can confirm this by doing a call, I'll see a pop-up but no ring, which is what I want. However the icon in the status bar will not reflect it. Basically if you lower the volume using the two emulated volume buttons you can get this icon to appear and change but if I use the code above it does not. My impression was that if I set the volume using the commands above the icon should change automatically. But it does not.
On Feb 16, 1:30 pm, Peli <peli...@googlemail.com> wrote:
Maybe it is a naive question, but are you referring to the symbol between the "G" and the "battery symbol"? I thought that would indicate the signal strenght of your current mobile connection - not the volume. (but maybe I'm mistaken). Or are you talking about some other symbol in the status bar?
Peli
On 16 Feb., 17:54, He Who Tries to Code <tsuc...@gmail.com> wrote:
I found the ringer icons (eg. vibrate, totally muted) and can set them in the status bar. But they appear as part of my activity and are not really tied to the real volume control. Any thoughts how to send notifications to the official volumeicon?
On Feb 15, 7:34 pm, He Who Tries to Code <tsuc...@gmail.com> wrote:
Hello,
Not sure if anyone ran into this already. I'm trying to change the volume of the ringer, basically manipulate the ringer , setting vibrate on/off, etc. Here is a sample of the code that lowers volume to 0.
AudioSystem.setVolume(AudioSystem.STREAM_RING, AudioSystem.MIN_VOLUME); android.provider.Settings.System.putInt(this.getContentResolver(), "ringer_volume", AudioSystem.MIN_VOLUME);
This code works, I can set the volume to Min/Max make a call and hear no ring or ring at max volume. However the graphic on the status bar does not update (it does sometimes but not always). I'm wondering if I have to send a notification for the status bar to display the proper iconbut I don't have the notification ID for the volume. Another problem with the code above is when I change the volume to minimum for instance the ringer is effectively off then if I try the UP/DOWN buttons the volume level resumes from wherever it was before my application was started. Its as though the volume was'nt registered with the volume server (or whatever its called).
Anyways, I'm starting to wonder if this is just missing functionality in the Emulator or is broken all together. Anyone out there ran into this or knows anything about it. Any information would be greatly appreciated.
Thanks in advance.- Zitierten Text ausblenden -




