I have an app that plays text to speech at certain events to let the user know what's going on. Due to the target audience of this app, it is likely that the user is playing music in the background. When I call play on the MediaElement the background audio stops and does not resume. In a similar app for Windows Phone 8.0 I handled this by creating a background audio task project, but that behavior is deprecated in 8.1. I've exhausted Bing, Google and the Windows API reference and can't find a solution. This must be possible because I listened to music for hours on Saturday while receiving voice navigation from Here maps and never had to restart the music.
Related
I'm developing a blackberry app using WebWorks that should listen to a bluetooth headset button events , when the play button is pressed for example it should do something
I have been searching for days for a solution using webworks or ndk but I got no clue.
even if there is a workaround that would solve the problem because I'm not concerned about playing any audio, I just want to capture the event.
You don't specify the environment you are developing in. Assuming Native/Cascades you use the NowPlayingConnection.
I have made a Windows Phone 8.0 application with Visual Studio 2012 that listens to a clap from the microphone and it pauses the current playing song. It is working very fine. But I want to open the app and click the button to start listening and when I go to another app the functionality does not work.
What I need is to make my application run in the background like even in home screen when I sound a clap it should pause the song. How can I achieve this ?
Short answer: Not possible to listen to microphone with a background agent
check this link:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202962(v=vs.105).aspx
Unsupported APIs:
System.Windows.Media A/V Capture
Microsoft.Xna.*
I am very new to j2me. I have developed a basic SMS Banking app. My app works in most phones which are touch and non touch devices (Samsung duos, Monte, Nokia 6120c …, Sony Ericson w300). But when I installed it in a Samsung SGH-D980 it installs and starts fine. But the list element which is the first screen after my loading splash screen does not respond to the touch. I have developed the app using Net beans 7.0.1 and uses CLDC 1.0 and MIDP 2.0. I have tried the defaultfxtouchphone emulator and works fine on it too. My problem is why does it work on some touch phones but not in the above mentioned touch phone. thank you,
The fact that touch events are available to MIDlet at any other phones means nothing in your case.
MIDP specification (JSR 118) does not force implementation to make touch (pointer) events available to MIDlets even for touch device. According to data provided at club-java page, this is exactly the case for SGH-D980:
Touch screen or mouse (hasPointerEvents()) No
Stylus motion events (HasPointerMotionEvents()) No
As soon as device allows to work with your list in non-touch fashion (you wrote nothing that says it ain't so), there is no problem - you just have to live with that.
of course not passing touch events to MIDlets when these are available natively means that MIDP implementation on this device sucks. But that's a different story
I am trying to add music player to my iphone app using the MediaPlayer framework. I dont have a real device with me and want to test it on simulator. But, the simulator doesnt support MPMusicPlayer and crashes when i run the add media app.
Is there a way I could test MPMusicPlayer on simulator?
You can't add music to the simulator so MPMusicPlayer will fail. It will have to be tested on a device.
I am trying to create a mobile website and want to be able to play/stream audio files.I have tried html5's audio tag and tried testing it on opera mobile 10 simulator but it does not work. I have lots of audio files and the audio should be auto played.
sidenote:
Also, i need to test my website for android and iphone mobile phones. I am downloading android emulator for windows. I tried searching for iphone emulator for windows but there are none...
Phone emulators aren't always a good indicator as they do not usually have a media player installed. The best way to test is to find someone with an actual Andriod / Blackberry / iPhone.
You should try the same HTML5 code with an actual phone. Note that Opera Mobile 10 does not have support for the video/audio tag. If you're interested in streaming to mobiles without HTML5, you should check this FAQ entry for more information.