Questions tagged [android-music-player]

623 questions
0
votes
2 answers

How to get album art from last.fm Android

I'm making an Music player for Android, I want to provide feature for users to get album art of a song from last.fm. I've got my API key too. Just need help for retrieving the image from Last.fm. Any help in getting the image url would also be…
0
votes
1 answer

Music Player will only list music from "/sdcard"

so I built my Music Play and it finally works. Thanks to some special people here. But at first I ran the app, it wouldn't display any music. So I looked at my code and it says final String MEDIA_PATH = ("/sdcard"); - I know, don't hardcode, but…
0
votes
1 answer

MediaPlayer Reset takes long time

My app is streaming music using Service and MediaPlayer, but i have a problem when trying to reset the mediaplayer to play next track. resetting mediaplayer takes long time and causes UI to freeze for a while when press next quickly multiple times…
0
votes
0 answers

Android include audio files with app package

I need to build a standalone audio/music player that should be able to play different audio files in 2 languages, english and russian as they are selected. I thought that would be and easy task since I found a lot of examples for a player that…
0
votes
2 answers

OnLongClickListener - play() music - return stop()

i'm trying to implement OnLongClickListener on MediaPlayer, but i can't figure out how can i manage on Release button to stop music. This is the code which i have now. @Override public boolean onLongClick(View v, MotionEvent event) { if…
0
votes
0 answers

getview() is not calling on button click?

I am developing a Music Player. All songs are placed in the ListView with a ImageButton. This button is playing and pause the songs. So I am using getview(). But when I am clicking on the ImageButton, the songs are playing and pausing, but the image…
Amit Jayaswal
  • 1,725
  • 2
  • 19
  • 36
0
votes
3 answers

play music in sdcard if exist file

i am playing music from SD-card and file exist it is playing music file but if it does not exist my app crashes what can i do? package com.example.downloadplay; public class AudioPlayer extends Activity implements OnClickListener { Button…
0
votes
2 answers

how to detect when Music is played using Native Music Player?

I am making an app in which I've made a Service which plays Music from URLs. The thing is that my music Service is playing music correctly BUT when user plays any song with Native music player then BOTH(Native Player and My Music Service) are…
QAMAR
  • 2,684
  • 22
  • 28
0
votes
1 answer

How to play recording audio file in musicplayer in android?

In activity contains three buttons Button-1,Button-2,Button-3. When i click on Button-1: It will records the audio and click on Button-2 it stop the recording and when click on Button-3 it will play audio it's working fine. But i want to play that…
Android_dev
  • 320
  • 1
  • 7
  • 26
0
votes
3 answers

securing the mp3 in my android app

I have a android app which has a copyrighted mp3 track. I dont want users to see the mp3 that is stored in my app on music player.currently users are able to access the track using their default music player. any lights on this issue?
Yogamurthy
  • 988
  • 15
  • 22
0
votes
2 answers

Implement Now Playing in Music Player

I am trying to make a music player in android. I have two activities. MainActivity: updates the list of songs and displays them. PlaySongActivity: implements the basic features: play, pause, next, previous. Now, I wish to switch between the two…
Vipul
  • 195
  • 1
  • 4
  • 15
0
votes
2 answers

How to access an audio in raw or assets folder by save it on sdcard or using app's installation address?

I'm trying to make a music album app that has some song in it and can play them. I made the player but now I am stuck because my player , uses musics in an especial address on sd card and I need to either copy audios or use my installed app's asset…
Sam
  • 43
  • 6
0
votes
1 answer

Continuous playing of music when re-creating an Activity?

I currently have an activity that plays music. When the activity is destroyed (i.e. user rotates the screen) I have the application store the music player's state and then play the music from the exact spot in the song once the activity is…
Andre Perkins
  • 7,640
  • 6
  • 25
  • 39
0
votes
1 answer

Modern Android Sony Walkman app extensions API?

Is a not deprecated way to develop app extension for Android Sony Walkman Player? The Music Infinite API is deprecated, and no longer supported in the Sony Add-on SDK (http://developer.sonymobile.com/knowledge-base/sony-add-on-sdk/)
0
votes
1 answer

Starting android default music player in background

I have built a small remote control service in my app to control the default music player from within my app. I can play, pause, skip and move backwards using the method private void remoteControl(String CMD) { Intent i = new…