How to play sound in whole Android Application background - android

Hello stackoverflow's members !!
I have terrible problem, I don't know how to implement service to play sound in background in my whole application.
I followed this tutorial but it seems to be not working for me.
Have you guys any idea how to do that?

Related

Android SDK for determining the music being played around you?

I'm looking into creating an android app and wanted to make something that could show what people around the user are listening to. Is there any way to do this? I've been looking at the Spotify SDK and it dosen't appear to be possible, but I wanted to confirm.
Sarah Markers,
To identify the music being played around you, I would suggest you to read this article http://www.royvanrijn.com/blog/2010/06/creating-shazam-in-java/ .
I could not find anything on Spotify SDK which can help you with determining the music.

drawing Media Player UI for Android

I am realizing my own media player am using ffmpeg for decoding and libjnigraphics(Bitmap,SurfaceView,...) for rendering.
I got it working now i want to get an attractive UI i want to display play/pause/stop/next buttons in the bottom of my screen with circular buttons etc like in the actual video players available in the market and in the following picture
How a similar UI is realized in android ?
I searched a lot over the net but i didn't find anything interesting
I would be thankfull if someone gives me tips about making similar UI
If I understand what you're trying to do you should take a look at this answer here:
Android: How to create video player?
by Commonsware and also to his sample application Vidtry.
Hope this helps. :)

Frame by frame animation with Audio using Services in Android

I need some help in the concept of Services in Android? Actually i want to Play some sounds with animation in Android. I'm done with frame by frame animation successfully but want to play some audio with animation. I got some ideas about Services from google but I'm unable to get their point, so that i am posting it over here. If anyone has any idea about how can i do this please give me some suggestion to do this. It would be very helpful to me.
Have a nice day ahead...
Thank you!!
You'd need to take a look at,
MediaPlayer
I think the documentation given is self-explanatory. Also you need not make use of a separate Service for playing the sounds, unless of course you have a special need.

how to play LRC and music in Music Player

I want to make a music player, it can play music and appear music lyrics, I can't find any api regarding this, can you give me some open-source app about this, or any example. I only know when i play music in a thread, and show lyrics in other thread, then Refresh user interface. my knowledge about is lil , could you guys suggest me.
I got the same question as yours, but why nobody wanna answer it? The only thing I found was http://tika.apache.org/0.10/api/org/apache/tika/parser/mp3/LyricsHandler.html, hopefully, it can help you.

Videoplayer issue in android

Hello
In my android application i am playing live rtsp links.
The issue is at times if the player gets struck somewhere then the videoplayer doesnot exit even if we press back.
The only option will be to close the program from task manager.
Is there any way that i can make it better?
Please share your valuable suggestions.
Thanks in advance :)
If it is your code getting stuck, be sure that you are not doing anything (especially network operations) that can block or take more than a few milliseconds in the UI thread - you need to be doing that in loopers or services.
If it's the underlying android video player engine that is hanging, sorry, no idea.

Categories

Resources