Android :: How To Manage Audio Volumes Sanely In My App?

Mar 10, 2009

I have an app that plays intermittent sounds while its activity is open, and the user is always expecting it to make these noises, but unfortunately it is constrained by the music stream volume. The options I have discovered are thus:

Adjust the music stream's volume, possibly deafening the user if they happen to be playing music at the time.
Call MediaPlayer.setVolume() which is ineffective if the music stream's volume is 0. Handle volume button presses myself which presents two issues: volume button presses adjust the ringer volume unless my audio is playing, and I have been as of yet unable to catch the onKey event for a volume button press using my OnKeyListener. If there were some way to force the adjustment to apply to the music stream while my activity has focus, or to just catch the button presses myself this would work. Play a silent looping piece of audio in the background to keep the music stream in context for volume adjustments.

I think the 3rd option is probably best since it cedes control of the volume to the user, but if there were some way to just override the system volume in a single mediaplayer instance that would work too.

Android :: How to manage audio volumes sanely in my app?


Android : App To Manage Audio Levels On Your Phone

Oct 7, 2010

Can someone tell me the best app they have found to manage audio levels on your phone? I have been looking around but haven't found one I like.

View 3 Replies View Related

Android :: Manage Audio Level Through Application - Combining Two Sources

Sep 23, 2009

Is there a way to manage the audio levels through an app? Or is it more dependent on the phone's built in capabilities? Right now at work I listen to a skype audio call from my house (for security) at a very low volume and then at a higher level I listen to music or podcasts, both sources going at the same time. When my dog goes nuts, the door is knocked on, or (in theory) if someone busted down my door, I notice the change in volume and sound, turn off my local media, and focus on what I'm hearing until the drama passes.

I ask because I would like to continue this setup when not at work, like say while running, where I again have earphones in and am normally listening to audio content. I would like to be able to have two pieces of audio: music combined with a skype stream or normal phone call, going at the same time like at work. So is there a way to have two sources going at the same time, with the volume of each independently adjustable? Is this an app thing or a phone thing? Phone will be Sprint Hero.

View 1 Replies View Related

General :: Finding App To Manage Audio Podcast

Apr 1, 2012

I'm addicted to audio podcast .

I'm using google listen to manage them..queue,download,etc..

Is there any other app that can do better?

View 2 Replies View Related

Android :: Notification And Ringer Volumes

Aug 12, 2010

The Android phones have a setting that allows you to force the notification volume to match the ringer volume, I can't seem to find that setting anywhere in SDK, can someone help me find out how to get and set it that specific setting?

View 1 Replies View Related

Android :: Need An App To Sync Ringer / Notification Volumes

Sep 15, 2010

I'm really frustrated with this. If I adjust the ringer volume with the volume rockers on the side of the phone, it only applies to phone calls. Notification volume requires going into settings and adjusting by itself. Is there an app that forces all volumes to sync with the ringer volume?

View 2 Replies View Related

Android :: Inserting Large Volumes Of Data Into SQLite

Sep 2, 2009

I need to insert approximately one million rows of data (spread over 4 tables) - each row has one or two numeric fields, and two or three text fields (normally quite short). Single-column indexes on all the fields. After doing some tests on the emulator with a small test set, I extrapolated (assuming the last row will be inserted with a similar speed to the first row) my results to figure out that this would take about 15 hours (I have a Core 2 Duo running Vista). However, then I tried running the small test set on my Hero and I was surprised to see it run more than four times faster. I would guess it would take about 3 hours on the Hero. Alternatively, I could make the pre-populated database available as a download on the first run but this is likely to be a 120MB download. I have a few questions I'm hoping someone can help me with: 1. SQLite performance on the actual device being 4-5 times faster compared to the emulator - is this normal/expected? 2. Do the figures above generally sound fast/slow/normal (sorry this is so vague)? 3. From a user perspective - would it be best to provide a 120MB download or a 3 hour "first-time initialisation" step (plus 6MB download)?

View 14 Replies View Related

HTC EVO 4G :: Mounting It To Computer - Should It Show 2 Volumes?

Nov 13, 2010

Wasn't sure if this should be in the troubleshooting section, since there might not be anything wrong. When I mount my EVO, all I see is my 8 gig micro SD card and no other volume. I was assuming that if I wanted to root, I'd need to actually see the EVO its self and not just the SD card.

View 8 Replies View Related

Samsung Captivate :: System & Speaker Volumes?

Sep 24, 2010

How to increase the volume on not only the speaker phone but also the primary earpiece? little too quiet for my personal tastes.

View 5 Replies View Related

Motorola Droid :: Link Volumes To Ringer Volume

Jun 13, 2010

Im looking for an app that will link all of the phones volumes (media/system/etc) to the ringer volume except for alarm volume. I need alarm volume to always be at max so I want it independent from this. I used to have an app that could do this but i forgot what it was and the only one ive been able to find after much searching, was one that links all volumes (alarm volume included). The prog i used before let me choose which volumes to link to ringer volume, rather than making them all linked.

View 4 Replies View Related

HTC Hero :: Music Player App With Lower Output Volumes?

Apr 8, 2010

I dont mind the stock music player app but is there any other music player apps. the only problem i have with the stock one is that the volume is kinda low at the max. with headphones they are fine but i use my phone for music in my car and even with my speakers on max volume within my car the music is really low. and my speakers in my car are upgraded and VERY loud. is there another music player app that has lower output volumes ?

View 3 Replies View Related

General :: Cannot Control Volumes With Volume Keys On Sony Xperia Z Tablet

Sep 29, 2013

I cannot control my volumes with volume keys on my Sony Xperia Z tablet. It changes the notification volume instead of media volume which is quite fustrating when trying to watch movies or listening to songs. I have to go to setting and change media volume seperatly. This issue started just a few days ago.

View 2 Replies View Related

Motorola :: Android Player To Recognize Audio Tags On Lossless Audio Files?

May 23, 2010

Does anyone know if there is a way for either meridian or the regular android player to recognize audio tags on lossless audio files?

View 1 Replies View Related

Android :: Analog To IOS Core Audio / Audio File Stream Services?

Sep 22, 2010

Is there an Android equivalent to the iOS Core Audio / Audio File Stream Services? I need to be able to read audio bytes from a network and feed them to the audio system under my control, so I can do my own timeouts / reconnects / range requests / etc. without interrupting the audio playback (since the system audio thread would be playing audio already enqueued). It seems that MediaPlayer doesn't give me this level of control. Is there a lower-level framework that does, either in the SDK or NDK?

View 2 Replies View Related

Android :: Combine Only One Audio File From Two Audio Files

Oct 2, 2010

I want combine two audio files. (A audio file + B audio file = AB audio file)So, my search result is:

1. useing an AudioTrack.

2. decode PCM from audio file.

3. combine PCM.

This is currect? It there another way?

View 1 Replies View Related

Android :: How Can I Apply An Audio Effect To Recorded Audio?

Oct 17, 2010

I want to record a sample from the microphone, then I want to play the recorded file maximizing the volume and apply some audio effect, like modifing sample rate or addind an echo.Waht is the best way? is there an example?

View 1 Replies View Related

Android :: Audio Record And Play Recorded Audio

Jun 2, 2009

Could you please let me know how to do the audio record in android emulator and play the same recorded audio. Could you please help me in proceeding in development.I tried with MediaPlayer API's also.Its not working.

View 5 Replies View Related

Android :: Determining Audio Format Of Audio Files

May 8, 2010

Is there a way to determine the audio format of an audio file in Android? On normal java I do it like this:

File file= new File(...);
AudioInputStream stream = AudioSystem.getAudioInputStream(file);
AudioFormat format= stream.getFormat();

View 2 Replies View Related

Motorola Droid : How To Play Audio From Phone Through RR Audio System?

May 5, 2010

I connected my phone via USB to my RR sport to upload audio files to the RR hard drive. However, I keep getting connection error. Apparently my device is not being recognized as a storage. I did the unmount thinking. Also, I am wondering how I can play audio from my phone through the RR audio system.
RR is 2010.

View 2 Replies View Related

Android :: Play Remote Audio File In Android Audio Player

Nov 12, 2010

I am working on a application that would allow users to play remote files. My question is how do I open those remote files to be played in the default android player?but this does not give me control of what is happening!

View 2 Replies View Related

Samsung Galaxy S :: Audio Codecs /can't Hear Any Audio

Jun 28, 2010

I have a 720p video that I am trying to play on GS. The image is amazing by the way. But I can't hear any audio (works fine on my PC). Anything wrong with the audio codec used?

View 7 Replies View Related

Android :: How To Manage Objects ?

Sep 8, 2010

I am new to Android development. I want to know how you all manage objects. For eg we make object as A a = new A(); and then manage that object. But, here, we call A.class; My concern is that i don't want to call on Create(),nor do i want to push UI screen I just want to make 1 static object for 1 screen;and want to manage it throughout my application. that is, instead of calling A.class; can i call A a = new A(),and manage that object without pushing,and whenever i need i push that screen. Is there someway?

View 1 Replies View Related

Android :: How To Manage Activities?

Jul 24, 2010

i identified problem in changing one activity using tab, in on tab activity i am adding data to sqlite in other tab activity i am displaying them using listview(array adapter)but when i come back to add data and after adding new item to sqlite the newly added records are not updated in listview.

View 3 Replies View Related

Android :: Cannot Manage To Get ADB Working

May 25, 2010

I want to start developing for android and for some reason whatever I do I can not make ADB show up my Nexus One. Both on and off in development mode. Both SD Mount and without SD Mount Both With USB tethering on and off for all "ADB devices"(windows XP64bit) show no device (service started successfully, device recognized in Device Manager correctly).

Tried reinstalling drivers, tried uninstalling drivers completely(using 3rd party software) and reinstalling, tried different versions of USB driver (up to the one before the last - that came with the 2.1 SDK). It seems online that this issue reoccurs on different devices, but all of them seemed to solve with one of the above solutions, Which none worked for me. It does not look like a hardware problem, because everything else that is USB'ed works correctly.

View 9 Replies View Related

Android :: Best Way To Manage Contacts

Feb 13, 2010

What is the best way to manage contacts, can u download your contacts?

View 2 Replies View Related

Android :: Manage 2 Versions Of The Same Application?

Sep 3, 2009

I want to use the same eclipse project to maintain only one source code (or two projects that refer to a generic project). My problem is that the names of the package have to be different on the market (eg: my.android.app.lite and my.android.app.pro). If the package names are differents, the generated java ressource files are differents (eg: my.android.app.lite.R.java and my.android.app.pro.R.java). So, the source files must point to differents R files according to the version (pro or lite) and I have to change all the import...

View 6 Replies View Related

Android :: How To Manage Connection To A Socket?

Jun 21, 2010

I would like to know what is the recommendation for socket connection management in Android?In our App we would like to be connected to a TCP/IP server when our app is in the foreground or paused. So, create a connection to a TCP/ IP server when the App starts basically, On Create of the launcher activity. However, we do not want to create a new connection and close connection every time an activity is created, paused, destroyed or orientation changed. So, we save the connection object in the App class and the activities will reuse the same connection.Question is when do I close it? I would like to close the socket when the App is "paused", "stopped" or "destroyed". The problem is these messages are not sent in the App context. How can I figure out if the App is in foreground or not? Even the "Terminated" event for an App is not guaranteed to be delivered. So, in that case how do I know when to disconnect?

View 2 Replies View Related

Android :: How To Manage Event By 2 Widgets?

Jul 10, 2010

I want to change how a gallery looks like. I want to add 2 jogs at each side, so looks like this:
http://omploader.org/vNHc2Yw/device.png

First approach was to add the "jogs" to the ImageAdapter (at the beginning and at the end) for the Gallery. The Gallery will show the items as usual, but It will apply the custom background and also if you specify spacing, you will get an ugly gallery. Also, I want the jog not to be centered as the others images. Then, I decided to download the whole api and modify the Gallery source in a way so to handle specially the first item and the last item of the adapter. But, I don't know how to compile the api alone. The Makefile in the root project will build 6gb of the whole android platform. If someone can explain me how to build just the API, I will be grateful.

The other approach was to compose Views. I thought to add ImageView's to the left and right corner and to be scrolled when needed, but when the Gallery capture the events I can't forward it to the holder of the ImageViews. So, I extend Gallery, and I override onScroll() like this:
super.onScroll(e1,e2,distanceX,distanceY); return false;
and also onTouchEvent() like this:
super.onTouchEvent(event); return false;
But unfortunately when I return false wihtin onTouchEvent() the Gallery does not scroll.

So, main questions are:
1) How can I compile the modified API to generete a MyGallery.class to be added to android.jar? If I modify the source code of Gallery.java I can manage the fill of the Gallery for the specific items I want (I already read the source code).
2) In other approach, Is it possible to handle one event by 2 widgets? If so, I could overlap the Gallery above a jog. The Gallery will scroll as he knows, and I will scroll as I want.
3) If those approachs are bad, what will you recommend ?

I don't get why the Gallery does not have this nice feature I want to implement, kind of: setBorders(left, right) and etc. The problem on extending Gallery, is that when you add a View (for instance, the "jog"), you specify a position. Gallery fills the gallery getting the Views of it container with: getChildAt(0) and getChildAt(numChildren -1) when filling to right and left, respectively. Then, it gathers the 'unseen' Views from the Adapter. So the added view (the 'jog') will be scrolled by Gallery, but when the view is no longer visible, the Gallery itself has no way to get back that view, as it's not in the Adapter.

View 7 Replies View Related

HTC Desire :: How Well Does Android Manage Its Memory?

Jul 7, 2010

I always hear that I don't need to use Task Killers as Android manages its own memory. However, I find that sometimes when I play emulators, killing tasks provides far better framerates.

View 2 Replies View Related

Android :: Manage The Callback Of The Applications?

Apr 2, 2010

in android application development, i frequently go through the word "CALLBACK" in many places. i want to know want it means to tell us technically. and how i can manage the callback of the applications.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved