Android :: Playing Same Sound Repeatedly

Dec 8, 2008

I have the following problem: when i try to play a sound over and over again, it sometimes (actually most times) is not played.the documentation says that one should use the media player in the following sequence if a sound should be played several times: is this the wrong approach? is there a more performant way to reset the pointer in the sound sample so that it can be played from the beginning? i tried using mediaPlayer.seekTo(0); but it didn't help. Code...

Android :: Playing same sound repeatedly


Android :: Using ASE And Playing Sound

Oct 26, 2009

I have a python application (anki) running under ASE. It is a simple web server that uses the browser as a UI. My only issues are playing sound, which are stored locally. On the iphone, anki uses a command line app (play) to play the mp3 files. Unfortunately, there is no command line app that I can call that takes a filename as an arg and plays it. What are my options with android?

- write a sound service that sits and listens for a filename to play; possibly listening on a port for filename

- write an Java-app that I call from within python that forks off and loads a specified file, plays it and then exits. Can you call other java apps from ASE?

- wait till the browser supports the <audio> tag. I guess this is html5, but am unaware if this will be on android any time soon.

View 2 Replies View Related

Android :: Playing Sound On App Startup

Nov 7, 2010

How do I go about getting my app to play an mp3 (in my res) on startup? Or how how about if I wanted this to happen when a button is clicked?

View 1 Replies View Related

Android :: Way To Stop Playing Music / Sound Of Other App?

Jan 28, 2010

I want to know that can we stop playing sound or music of other application which actually plays the music from our application? Something like get the handle of MusicPlayer or AudioManager in our application and using this handle stop the currently playing sound.

View 9 Replies View Related

Android :: Detect Sound Currently Playing On Speaker?

May 18, 2009

Is there any way to tell if an app is currently using the speaker (playing music or generating other sounds)? Specifically, I'd like to detect if an alarm clock is going off (not only the one that comes with the system, but any alarm clock), but I'll settle for simply knowing if any sounds are coming out of the speaker.

View 2 Replies View Related

Android :: Create Thread In Background For Playing Sound?

Nov 4, 2010

how create thread in background for playing sound?

View 2 Replies View Related

Android :: Noisy Music Sound While Playing (MediaPlayer)?

Jul 19, 2010

is there a way to find the 'noise produced' by a currently playing sound (MediaPlayer) -Like in many music editor software you import a song and it does a graphical layout of the song -like a graph with it higher up at louder bits. Hard to explain. But there must be a way to do this on android...

View 1 Replies View Related

Android :: Bad Sound Quality When Recording / Playing Audio Files

Oct 16, 2010

Hey, I have a problem with android programing when I try to record and then play the file that was just recored. I can both record and play the sound but the quality stinks. Its not just bad is really hard to listen to and sound abit like its a computer generated voice. I use the andriod SDK-emulator. The code that sets up the recording looks like this;

MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();

And the code playing the file later looks like this;
MediaPlayer mp = new MediaPlayer(); mp.reset();
mp.setDataSource(path); mp.prepare(); mp.start();
I don't know what part that makes the audio file sound really bad or if its just the emulator that makes it bad and that it would work on a real phone.

View 2 Replies View Related

Android :: Playing Short Audio Clip Has Tick Sound

Dec 14, 2009

I'm using the SoundPool to play a series of small audio clips and am having issues with the audio when it starts. I have the audio attached to a button press. When I press the button mulitple times the tick persists. I was wondering if this was the audio file itself or is there something I need to do differently with the SoundPool other than play simply play the clip. These are .ogg files I created using Audacity. When I play them in my dekstop media player, they sound fine.

View 2 Replies View Related

HTC EVO 4G :: What Program To Be Used For Playing Different Sound Files?

Oct 14, 2010

What program do you use to play these (MP4, WMV, MOV) files on your Evo? I can't they them to play.

View 3 Replies View Related

Android : Playing Bigger Size Audio Wav Sound File Produces Crash

Mar 25, 2010

I am trying to play the bigger size audio wav file(which is >20 mb) using the following code(AudioTrack) on my Android 1.6 HTC device which basically has less memory. But i found device crash as soon as it executes reading, writing and play. But the same code works fine and plays the lesser size audio wav files(10kb, 20 kb files etc) very well.

P.S: I should play PCM(.wav) buffer sound, the reason behind why i use AudioTrack here. Though my device has lesser memory, how would i read bigger audio files bytes by bytes and play the sound to avoid crashing due to memory constraints. Code...

Could someone guide me please to play the AudioTrack code for bigger size wav files?

View 1 Replies View Related

HTC Wildfire :: Playing Films - Sound But No Picture / Set It Up?

Nov 27, 2010

Just brought mt Daughter a HTC Wildfire for Christmas, thought i would put a film on for her, converted it to mp4 format, then opened phone on to pc and dropped film into the sd card....thing is when i play the film on her phone, all i get is the sound but no picture.

View 1 Replies View Related

HTC EVO 4G : Way To Stop Sound From Automatically Playing In MMS Messages?

Oct 21, 2010

I hope nobody's already answered this somewhere -- I've been searching for a few days now with no luck. I'm wanting to disable the audio in received mms messages. I absolutely loath those messages that scream, blare music, say offensive stuff, etc. With my old Lotus, you actually had to choose to play the attached audio, but I can't find anything anywhere to set this on my new Evo. If anyone knows how to either make the audio in messages manual instead of automatic, or just disable their audio completely, I'd be eternally grateful to learn this!

View 7 Replies View Related

General :: Audio Echoing - Playing Sound Twice?

Jan 22, 2013

I have a flash file that I open through smartswf and suddenly the audio is now echoing, like its playing the sound twice. It use to work OK on this ROM (cyanogenmod 10) with this app. It does the same with other flash files also. I have tried other apps and does the same thing, and tried reinstalling flash and rolling back to earlier versions with the same result.

View 1 Replies View Related

General :: No Sound When Playing Games Or Music

Jun 9, 2013

I flashed too many roms for fix it {custom and offical}, my problem is my phone don't have sound when play any game or music but when my phone ringing its have sound.

View 1 Replies View Related

HTC Droid Eris :: Playing Videos - Hear Sound After 3 Second

Jan 15, 2010

When I download like a 50 sec video it will play about the first 3 secs and then all I hear is sound. Is there an app that fixes this or can I change something on my phone to make it work?

View 2 Replies View Related

Sprint HTC Hero :: Speaker Only Playing Sound From Left Side Of Camera

Dec 28, 2009

the speaker on my hero is only playing sound from the left side of the camera. is this how its supposed to be or do i have a faulty device?

View 5 Replies View Related

HTC Droid Eris : Videos Stop Playing After 1-2 Seconds But Sound Doens't

Jan 6, 2010

I loaded about 4 gigs worth of videos (About 160 different clips) onto my 8 gig SD card. When I try to play a video, the video freezes after about 1-2 seconds, but the sound keeps playing. Is there any way to solve this? There's just over 3 gigs of free space on the card.

View 16 Replies View Related

HTC Hero :: Mail Vs Google Mail - Application Not Playing Notification Sound?

Aug 24, 2009

Wondered what people's thoughts were on the mail apps that come with the phone? I've been using the HTC app, but have noticed that after a day or so the notification sound stops playing when I receive an email. This happened for anyone else? Anyone tried both apps for any length of time and have strong opinions over which app is better? I saw a review that said the HTC app is better but the Google one doesn't seem too bad to me... Anyone using the Google app that would care to chime in?

View 9 Replies View Related

Android :: App That Vibrates Repeatedly For Notifcations?

May 25, 2010

I use Google Voice for all SMS notifications. I use the Gmail application for my email.Does anyone know of an application that will vibrate my phone at a certain interval, e.g., every 2 minutes, until I actually open my phone and acknowledge that I've received the notification?I would LOVE THIS! I used to have a phone that did this and it came in handy. I find that my Incredible's vibrations are a little light, and I often miss important texts when it's on vibrate.

View 18 Replies View Related

Android :: How To Repeatedly Draw On A Canvas?

Sep 7, 2010

My requirement is to draw a line on canvas for every second. I am able to draw the line but its clearing the previously drawn lines when I call myview.invalidate(). Now my question is how to draw a new line retaining all the previously drawn line on the same canvas.

View 5 Replies View Related

Android :: Add Proximity Alert Firing Repeatedly

Jun 10, 2010

I am adding a proximity Alert with an expiration of -1 (does not expire). I am testing using an Evo. The proximity Alert fires several times after entering the location and staying inside the location. I was thinking that the proximity alert should fire once when you enter the location and fire once when you exit the location. Should the proximity alert fire multiple times after you enter the location and stay inside of the location?

View 2 Replies View Related

Android :: Need To Take Into Account When Repeatedly Calling Same Activity?

Oct 28, 2010

I am developing an app where a single activity is instantiated multiple times by itself. I guess you could think of it like a book where each activity is a page. At the end of the page (activity) the user presses a button to go to a new page. I fire off an Intent for the same Activity, but I push different data into the Bundle so that a different page is loaded. This works fine, and I like the fact that the user can back up to a previous point, but my question is whether this will eventually be a problem? What happens if this activity is instantiated 10 times, or 50, or 100? Will the device run out of memory, will GC come along and clean up old activities, or what? If GC does clean them up, what happens when the user presses Back and the previous Activity is no longer on the stack? Is it better to keep track of the user's path, finish() the activity, and override the Back button so that whether the user is moving forward or backwards, I only load a single Activity? Another approach I could take is to refresh all the data on the page so that it's still the same activity, but with new data. The Back button would not work as expected in this case.

View 2 Replies View Related

Android :: Setting An Alarm - Occur Repeatedly - Hence Using AlarmManager.setRepeating

Apr 10, 2010

In my android app, I'm setting an alarm that I want to occur repeatedly, hence using AlarmManager.setRepeating().

I don't want to keep track of whether the alarm is set myself (sounds like a bad idea that's prone to fail at some point), and there seems to be no API support for checking whether a particular alarm is already set for a given Intent.

Hence, I am pessimistically resetting the alarm each time my app activates:

alarmManager.cancel(pendingIntent);
...
alarmManager.setRepeating(..., pendingIntent);

Question: is calling setRepeating() idempotent i.e. do I need to explicitly cancel() any prior alarm or can I safely just call setRepeating() and be done with it?

View 1 Replies View Related

Android :: Tasker Google Maps Starts / Stops GPS Repeatedly

Aug 9, 2010

I just started using Tasker on my Droid X and have found it to be very useful. I have had a problem with a Profile that I built around Google Maps. After reading about a GPS bug on Droid X (I believe the same issue happens with WiFi, but it not relevant here) I created a profile that turns on GPS when Maps is started and turns off GPS on exit. In order to verify the on/off tasks are being doing at the correct times, I added a popup to the end of the on/off tasks. If this worked as I thought it would, I should see the popup happen after launching Maps and I should also see it when Maps closes: So after setting this profile up in Tasker and launching Maps, I see maps open and the GPS on popup appear, but after a few seconds, the GPS off popup appears. After a few seconds, the GPS on popup appears and the GPS off popup apear again. This repeats for as long as I have the Maps app open. Maybe this has something to do with how Google Maps launches/works/exits, but I'm at a loss here. Does anyone have any ideas why this is happening?

View 5 Replies View Related

HTC Droid :: Eris Turning Off / On Repeatedly

Sep 2, 2010

okay so i downloaded skype mobile and it download but got stuck on the installing screen so i turned the phone off and back on and now it just is stuck in this endless loop of turning off and on. i tried holding down the volume up key while pressing the end call button to do a reset and it just says "cache error". any ideas? maybe skype gave me a virus?

View 18 Replies View Related

HTC Desire :: Handle Programs In Settings Repeatedly

Apr 17, 2010

All of a sudden going into "handle programs" in settings on my HTC Desire force closes com.android.settings. BAM! I've tried rebooting several times, no difference. Even tried uninstalling the last application I installed but it still force closes. Now uninstalling through the market works fine, so it does through the astro program handler, but why does my core settings app all of a sudden crash bigtime?I've not rooted the device and I don't have much fishy stuff on it, the most fishy thing I guess is the HTC IME modded keyboard from jonasl that adds the microphone button and a milllion other neafty tricks. I'm not sure if this started happening then or later.

View 2 Replies View Related

General :: HTC Sensation Won't Power On - Vibrates Repeatedly?

Jul 26, 2013

my htc sensation shut down yesterday, and as yet I have been unable to get it on, the battery itself was still sitting at about 15%. When I plug the phone into the wall or computer the orange led flashes slowly. When I attempt to turn the phone on it vibrates repeatedly as if trying to boot, but nothing appears on the screen. I have tried to jump start the phone, hard reboot, bootload through the pc but nothing seems to be happening. I need my phone urgently as my wife is due to give birth anyday now, and she needs to be able to contact me at work.

View 1 Replies View Related

Motorola Droid :: Gmail Repeatedly Crashing Phone

Nov 25, 2009

I am on my third exchanged phone for a variety of reasons I have a 41/09 device that is repeatedly crashing whenever I try to compose an email with the native gmail app.I have duplicated it over and over again. There is a lot of debate as to whether these crashing phones are experiencing a hardware or a software problem.This seems like a software problem, and could be related to how the new 2.0 OS deals with memory, etc.I would like to think that an software update would fix it.There is no doubt that Verizon and Google are aware of the high number of phones that crash software.I bought my phone at Walmart, and they are about done with my replacement requests. My store and the next closest store who sells Verizon is out of the Droid.

View 3 Replies View Related

Motorola Droid :: Receiving Message With Code Repeatedly

Jan 9, 2010

I've recently been receiving SMS message from 6245 (I know - it's "MAIL" on the keypad) that says: "//BREW:0X0106DCC7:UPDCHK:MajorVersion:4.0.07.04*END".

Is anyone else receiving this, or know what it is? I received 3 of these today, and about 5 over the last several days. It seems to have happened after installing Trapster. I don't see anything on their forum that gives me any clues.

View 9 Replies View Related







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