Android :: Best Way To Play 10 Sounds Quickly
Oct 21, 2010
I am trying to play the same 10 sounds very quickly and wondering what is the best way?
1. Make 10 media players
2. Make 1 media player and set the sound each time
3. Use a soundpool?
View 3 Replies
Jun 4, 2010
I'm a little confused about how to adjust all of the various sound settings quickly and easily in this phone. If I turn the "Ringer Volume" to vibrate, it still makes sounds when I get an email? Seems like there should be a quick and easy way to disable or enable all sounds from the device. Is there anything like that?
View 1 Replies
View Related
Jun 3, 2010
Is it possible to play audio via an app like slacker.com or pandora.com or your personal audio files and simultaneously play another audio track over the top of it with a second app? My question is whether the sound hardware gets locked by the first app that accesses the audio hardware or whether a second app can access the hardware simultaneously, too.
View 2 Replies
View Related
Nov 24, 2009
I am using soundpool to use sounds in my app. One of the sounds i need to play continuously in background. any example how to do this ?
soundPool.play(soundPoolMap.get(sound), streamVolume, streamVolume, 1, 0, 1f).
View 3 Replies
View Related
Jan 18, 2010
Is it possible to have two instances of MediaPlayer to play sounds/ video? How many instances are actually allowed? I can see from the Javadocs that there is a limited amount of instances of MediaPlayer allowed.
View 3 Replies
View Related
Mar 31, 2009
I have an Activity that plays a brief OGG "pop" sound effect when bubbles pop. To keep it fast and to ensure I can play several pops, I create four MediaPlayer instances. I synchronize access to a pool of instances, so I can play up to four pops at once. Once a sound completes, I call seekTo(0) and return the MediaPlayer instance to my pool.
Here is a rough sketch of the code:
// when the activity resumes... for (int i=0; i<4; i++) {
MediaPlayer mp = MediaPlayer.create(context, R.raw.pop);
mp.setOnCompletionListener(this);
mp.setVolume(1f, 1f); players.add(mp); // put into a pool of available players }
View 4 Replies
View Related
Oct 9, 2010
I wrote an iPhone app some time ago that creates sound programatically. It uses an AudioQueue to generate sound. With the AudioQueue, I can register for a callback whenever the system needs sound, and respond by filling a buffer with raw audio data. The buffers are small, so the sound can respond to user inputs with reasonably low latency.
I'd like to do a similar app on Android, but I'm not sure how. The MediaPlayer and SoundPool classes seems to be for playing canned media from files, which is not what I need. The JetPlayer appears to be some sort of MIDI playback engine. Is there an equivalent to AudioQueue in the Android Java API? Do I have to use native code to accomplish what I want?
View 1 Replies
View Related
Feb 15, 2010
I am fiddling around with a dialog that pops up and displays an alarm information. (I know, it has been documented that in Android it's "better" style to use notifications instead, but just like the alarm clock I want it to display a dialog on top of whatever you do to really get the users immediate attention - as the user expects this behavior I don't think it's bad style!) Now - the only easy way I found is using the RingtoneManager.getRingtone() function to get a Ringtone object for the type "alarm". Well, I can play that sound now using Ringtone.play() - but it plays the sound only once and I cannot figure out how to let it play endlessly until the user reacts, e.g. by touching the dialog anywhere or dismissing it using Cancel button provided. Does anyone know how this can be accomplished easily?
View 1 Replies
View Related
Apr 14, 2012
My first coding project is a soundboard type thing on andriod using eclipse (on 2.3.3)whats wrong with my code, I dont get any errors but the button doesnt play the sounds.
Code:
package com.mkyong.android;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;[code]......
View 1 Replies
View Related
Feb 1, 2010
When I get a gtalk or text I hear the notification sound and it vibrates just fine. When I open gtalk and answer the text, then I put the phone down for a second and I don't hear any more notifications. This drives me nuts because then I pick it up and I see the person replied a long time ago.
On my old blackberry curve. Every time I get a message it would make a sound. With the droid, if you are in gtalk. It wont make a sound so other then checking the phone or looking at the notification light. I don't know a message came in.
View 4 Replies
View Related
Nov 28, 2009
My phone just decided to randomly play a mp3 at 3 am. I'm sound asleep, it woke me up, and I couldn't figure out how to stop it, or why it did it in the first place.
View 2 Replies
View Related
Apr 6, 2010
The Eternal Speaker plays forever. I never noticed it before today, but my Eris is definitely not disabling music playback through the eternal speaker when I plug headphones (or an adapter, or anything) into the headphone jack. Sound still comes through the earbuds or headphones nice and crisp, just the speaker is ALSO playing the same sound, at the same volume.
This sort of defeats the purpose of one of the main reasons I use headphones- to mute sound for everyone but me. I tried different music players, different headphones, made sure the phone knew they were non-mic headphones, everything. I can't find a setting to tell the speaker to disable when headphones are in- isn't it supposed to be automatic?
View 9 Replies
View Related
Apr 28, 2012
I have a Droid Bionic. I like it. But I was recently having some GMail syncing issues and during the troubleshooting for that I uninstalled the latest GMail update and reinstalled it. As a result, GMail is now doing audible notificatrion sounds for new email when before I only had notification in t he notification bar. I can't seem to get it turned off. I still want calendar events and texts to sound so I don't want to silence the phone but I want email and GMail to be silent (Notification icon only).
View 5 Replies
View Related
Aug 7, 2010
Quite often we meet a new person, and we want to get each other's phone number. Back when I had my old non-smartphone it was easy, I enter the number press a button and there's an option to save it as new contact, I don't even need to enter a name till later.
I have a HTC Desire running Android 2.2, what's the best way to quickly record a phone number?
I always found it frustrating when someone asks for my number, I begin to say it then they go "wait wait hang on", while they fiddle with the menus to add a new contact. Now it seems I'm on the same boat!
View 7 Replies
View Related
Jun 22, 2009
While playing with my phone the other day I realised a way of adding application shortcuts a faster way to the home screen then holding a blank space, choosing shortcuts, applications then selecting. Open your apps list and just tap and hold an app, it then pops to the homescreen so you can add the shortcut. Found this much quicker than waiting for the apps list to load everytime.
View 4 Replies
View Related
Oct 12, 2010
I've got a HTC Wildfire and in the last couple of days the battery has started draining really quickly. Usually I could leave my phone overnight with wifi and mobile web etc switched off and the battery would drain by a maximum of a couple of percent but now it's losing 25% of its charge overnight with nothing running. Looking at the battery usages since unplugged 3% is phone idle, 4% cell standby and 93% maps!! I haven't even used the maps for a couple of days so what could be causing this? The only apps I've downloaded in the last couple of days are WordUp!, Air Control Lite and Shopping List manager.
View 7 Replies
View Related
Jun 18, 2010
I'm trying to write a free mobile app that would make payments merchant-agnostic for the customer. Context: Most web-apps are merchant centric and allow for multiple payment types from the customer. But the problem I'm trying to additionally solve is to have, say, a mobile app that is capable of paying as many merchants as possible using your debit, credit or PayPal account. It shouldn't rely on per-merchant technical partnerships to work. It should just be able to talk to any merchant after writing the upfront code. There are a few solutions that come to mind: Integrate with VISA, Mastercard, or PayPal. However, my goal is to integrate with stores that sometimes only take debit, sometimes only VISA, sometimes only PayPal, etc, while re-inventing the wheel as little as possible. I'm wondering if anybody has already solved a problem like this before?
View 1 Replies
View Related
Jul 14, 2010
When you click in a search box and it lists all your recent searches, is there a way to select one and then modify it.
View 1 Replies
View Related
Jan 10, 2013
I am trying to transfer about 14,000 SMS from an unrooted 2.3.5 Android to a rooted 4.2.1 Android phone.
MyBackup Pro backs them up quickly, but restores them at a rate of less than 1/second. Thus, I have been looking for another tool to back up with:
1. Titanium Backup: no, as the 2.3.5 phone is unrooted;
2. new Windows-based Ultimate Backup Tool: no, as it requires Android 4.0 or greater.
Any recommendations, other than running the restore tool all night? A tool that allowed me to back the SMS up in chronological blocks could be very useful.
View 2 Replies
View Related
Jul 23, 2010
I have 50 XML files located on a remote server, one formatted for each state. I am able to read each of the 50 files by selecting a state from a spinner and using a SAX parser but I cannot seem to find out how to pull out information from each file by city. I have tried unsuccessfully to pass a city variable to the characters method of the Handler.
Each state has thousands of records and I am looking for a way to speed up the search since reading the entire file for a state takes several minutes. I used SAX since it was supposed to be the fastest way to read but it limits me in selecting specific information. If I understand things correctly I could use a DOM parser to find my state and city specific data but that would make retrieval even slower.
View 10 Replies
View Related
Dec 6, 2009
In Eclipse I'd like to quickly rebuild and run my app after making changes.
Say the change was in manifest or resources. Now I have to focus with mouse on main java source file, press Ctrl+F11, choose (with mouse or two keys) to Run as Android app.
Is there a keyboard shortcut to just save all, build&run the project as an Android app?
View 2 Replies
View Related
Dec 11, 2012
I am new to Android, being an iOS aficionado who decided to give Android a try.
I am slowly but surely getting the hang of things. One thing, however, has me baffled: how do I quickly search for content on my device ( namely, contacts, apps, calendar entries, etc).
With iOS you merely swipes to the left of the home screen and type in the search box there what you're looking for. How do I do something similar with Android? I've tried the Google gesture search app, but it doesn't seem to bring up results very reliably.
Nexus 7 using Android
View 2 Replies
View Related
Aug 3, 2010
I want an electronic version of this: '10/'11 At-A-Glance Academic Monthly Planner, 6-7/8" x 8-3/4" | Staples
I just want to be able to write down school assignments quickly for each day as the day goes on. I don't want to associate them with certain events or times or anything, but I think I want more than just a notepad.
View 5 Replies
View Related
Aug 18, 2010
I have a Motorola Droid 2. Is there is way in Google Maps to quickly toggle traffic on and off? And a quick way to clear the map?
On my old Palm I could just hit # to toggle traffic on and off. But on the Droid I have to hit Menu, then layers, then traffic. The same to clear the map. Even opening the keyboard on the Droid2 and hitting alt # does not work.
View 1 Replies
View Related
Mar 5, 2012
"Android OS" is using my battery way too fast at 33%.
I'm wondering what is is exactly and tips on saving battery life.
DROID RAZR
View 2 Replies
View Related
Feb 26, 2010
The Contacts app shows a button on the side of the screen that acts as a little thumb to allow you to quickly scroll the big list. I have a very long list that would benefit from this navigation behavior, but can't find any documentation as to how to enable it.
Is it a behavior that's built into the SDK, or must I write it myself?
View 1 Replies
View Related
Jun 12, 2010
Just wondering if anyone had any insight. When I take my phone off the charger it is down to 96-95% within a few minutes. It seems to level out afterwards, but the first 10% blows by very quickly?
View 10 Replies
View Related
Jun 4, 2010
Call this an experimentation of sorts. I want to see how quickly Sprint can roll out 4g coverage. Vote Yes or No as to whether or not you have 4g coverage in YOUR AREA ONLY. The poll will be open for 1 week. Next month I'll post a new poll along with the results of the previous poll. I'll do this for a few months to track their progress.
View 36 Replies
View Related
Sep 17, 2010
Charged my desire all through the night and unplugged this morn to check emails and surf web via wifi. must of been online for 5-10 mins and the battery had dropped to 91%. is that normal?
View 7 Replies
View Related
Apr 30, 2010
I'm interested in this phone for use with ViewRanger - a GPS app and my question is .....If I switch off everything apart from the GPS and an app that uses GPS, how long would a fully charged battery last?
View 5 Replies
View Related