Questions tagged [android-music-player]
623 questions
0
votes
1 answer
How to play music files in raw folder continuously
Creating music player related application,In raw folder having 5 mp3 files.want to play continuously and individually ,
else if (theText == song3) {
mediaPlayer = MediaPlayer.create(this, R.raw.hiii);
} else if (theText == song4) {
…
user2843350
0
votes
1 answer
How to filter songs in listView
I have a listView filled up with all songs on sdcard, can i filter them by name using an ediText or something else (like a SearchBar) and update the listview?Thanks, this is how I fill up the listview:
@SuppressWarnings("deprecation")
private…

user3001347
- 3
- 3
0
votes
1 answer
Loading music files from gallery to my folder in android
I was on the way of creating a music player of my own in android. I want ot load all the music files from gallery to my folder so that I can add some of them to my favourites. But, the problem is, while I'm getting the files from gallery it makes…

Tony
- 277
- 2
- 3
- 10
0
votes
1 answer
I created a song player that has a basic functions like play, pause etc.but i want in one function describe below
I created a online radio player TuneUP that has a basic functions like play, pause etc. When I click play list, the current song Index will play. Now, while the song is playing and I press the back button go to my home activity using intent, the…

user2935620
- 69
- 1
- 10
0
votes
1 answer
Is it possible to use the stock music player with your own custom widget?
I'm looking to make a custom music player widget for my homescreen which will be attached to the stock music player on my phone. The controls on the widget will be very basic: play/pause, previous song and next song. It would also display the name…

Marjolein
- 131
- 1
- 1
- 5
0
votes
1 answer
ToggleButton between activities
I'm developing a game, and I've put a toggle button on the settings activity to turn off and on the music in the game activity.
Here's the Settings.java file:
public class Settings extends Activity implements OnCheckedChangeListener{
ToggleButton…

matiszz
- 556
- 3
- 11
0
votes
2 answers
Music(activity) restarts when rotating device...why does it happen?and how can i stop it from restarting?
well i think my question describes itself ,
anyways here is the code
public class NowPlaying extends Activity implements Serializable {
static MediaPlayer mp =new MediaPlayer();
String artist;ProgressDialog pd;
int position; String…

Ankit Srivastava
- 280
- 2
- 7
- 24
0
votes
2 answers
Bound Service in Music Player plays song many times, overlapping
I'm creating a Music Player in Android. I have a problem when playing the song: I don't know whether the problem is my logic or the implementation of my Service Class.
The problem is when I click on the ListView item, the song will play but when I…

Hisam Hershy
- 91
- 1
- 3
- 8
0
votes
2 answers
Music stops when playing in background.I don't want to use it as a service..what are my alternatives?
i am developing a music player app and it plays the music fine,but the problem comes when it is playing in the background,it stops after some time....i have searched it on the net to how to resolve this problem,almost all of them were using a…

Ankit Srivastava
- 280
- 2
- 7
- 24
0
votes
1 answer
Android stop music after a preset interval
I need to allow the user to stop the music after a preset time.
When user enters a new activity, I start the player with a looped sound. But I want the sound to stop automatically after a while.
I use this code onCreate of the activity:
final…

user1137313
- 2,390
- 9
- 44
- 91
0
votes
1 answer
Unable to stop the execution of media player in the middle
I have the following code snippet. Not sure why, when clicked on the exit button the media player doesn't stop, even though exiting the game should stop all activities in it.
Any help would be appreciated.I have tried stop(), release(), reset() and…

suman das
- 5
- 4
0
votes
0 answers
Open Songs Tab in Music Player in android
the below code always opens with Artists tab in android music player but i want to open Songs tab in android music player when it is launching can this be achieved by intent in android.
Intent intent = new…

user1048958
- 371
- 2
- 5
- 18
0
votes
1 answer
Android SwipeGesture working only in one direction,i have no clue why?
i am making a music player for android but i recently updated it with swipe gestures but the thing is that only one gesture(bottom swipe is working) i checked the swipe gesture class and nothing seems to be wrong in that
here is the code of my…

Ankit Srivastava
- 280
- 2
- 7
- 24
0
votes
1 answer
Mobile Android music playback
i have developed a mobile web app that plays back music everything work great apart from.
We i open the app and start playing music if i try and close the screen to put it in my pocket the music stops really annoying so i have to hold the app the…

user1503606
- 3,872
- 13
- 44
- 78
0
votes
1 answer
How to pick the files from folders and subfolders in Android iteratively?
I am developing an app in which I am generating the list of all mp3 files and adding it in a custom list. I have a program for this but the problem is that it doesn't return the files inside the subfolder.
Can anyone advise me or give a link or…
user2348089