hello all, I am working on android project. i have started background music in one of my activity named"myMainScreen.java" now on that activity i have put one button. while clicking on button i will redirected to another activity called"page_play.java" through intent. Music will get stopped on the second activity(page_play). but i want music in continuation, what changes i have to do in my current code. my current code is given below. public class myMainScreen extends Activity { MediaPlayer mp; AssetFileDescriptor asd; Button b1,b2; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_my); b1 = (Button)findViewById(R.id.btn_play); b1.setOnClickListener(new …

Member Avatar
Member Avatar
+0 forum 2

Why "chile" instead of "child"? Is it a kind of slang?

Member Avatar
Member Avatar
+1 forum 11

Dear Daniweb, I just got the following [HTML5 music player](http://www.audioplayerhtml5.com/player_blackControllers_WithoutPlaylist_Ex1.html), which gets it's music from a list I provide in HTML like this: <ul> <li class="xtitle">Follow Me Here B</li> <li class="xauthor">Author Name</li> <li class="xsources_mp3">audio/adg3com_freeform.mp3</li> <li class="xsources_ogg">audio/adg3com_freeform.ogg</li> </ul> <ul> <li class="xtitle">This is Freeform C</li> <li class="xauthor">Author Name</li> <li class="xsources_mp3">audio/wm_follow_me.mp3</li> <li class="xsources_ogg">audio/wm_follow_me.ogg</li> </ul> I am looking for a way to get this list shuffled so the playlist doesnt always start with the same song. So far my knowledge (null) of javascript, but my guess is that i have to edit something at this part of the code. b.playlist_arr = []; c(".xaudioplaylist", d).children().each(function …

Member Avatar
+0 forum 0

Hey im trying to run background music when the user clicks the button. below is my coding. when i run the program, it says file cannot be found. any help would be appreciated [CODE]import javax.swing.*; import sun.audio.*; import java.awt.event.*; import java.io.*; public class Sound { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setSize(200,200); JButton button = new JButton("Clcik me"); frame.add(button); button.addActionListener(new AL()); frame.show(true); } public static class AL implements ActionListener{ public final void actionPerformed(ActionEvent e){ music(); } } public static void music(){ AudioPlayer MGP = AudioPlayer.player; AudioStream BGM; AudioData MD; ContinuousAudioDataStream loop = null; try{ BGM …

Member Avatar
Member Avatar
+0 forum 24

When I'm listening to music on my iphone and I pull up the control center It won't let me go to next track. Any solutions

Member Avatar
Member Avatar
+0 forum 2

Hello Community, I was trying to play music throught my iPod dock with my new iPod (5th gen). The sound only comes throught the iPod and not the stereo.

Member Avatar
Member Avatar
+0 forum 4

Is it possible to play or make music in Python?

Member Avatar
Member Avatar
+0 forum 3

I'm working on a music streaming website for iPads and iPhones the website is programmed mostly with php and html. The website uses the website layout iwebkit (http://snippetspace.com/portfolio/iwebkit/). My question is how do I make box appear at the bottom of the screen that is always on the screen even when a visitor goes to another page on my website. the box would display the music player (probably just the default html5 audio player for now) on every page so that the music doesnt stop when a visitor clicks on a link on my website. Any information on how to …

Member Avatar
Member Avatar
+0 forum 4

I have a problem with this... import javax.swing.*; import sun.audio.*; import java.awt.event.*; import java.io.*; public class PikaPlatformer { //----------------------------------------------------------------- // Creates and displays the application frame. //----------------------------------------------------------------- public static void main (String[] args) { JFrame frame = new JFrame ("Direction"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new PikaPlatformerPanel()); frame.pack(); frame.setVisible(true); } } How would I insert sound into this I just want music to play in my game. Any suggestions?( this is just the jFrame)

Member Avatar
Member Avatar
+0 forum 16

I'm working on a music player and I want to make it so that if I'm playing a song and I click on another song in the list the first song stops before I hit play on the second one, without having to manually stop the first. So just the act of clicking on another song will stop a currently playing song. The following is the code I have so far (I've left out the code for the GUI, just the relevant classes). [ICODE]public class Player { private PlayList playList; private Track track; private int tracksPlayed; private int totalTrackTime; private …

Member Avatar
Member Avatar
+0 forum 2

Hey Guys, I have a large music collection and was irritated by the 64GB limitation on my itouch, UNTIL I found Subsonic [url]http://www.subsonic.org[/url]. Now my ENTIRE library is available to me via the internet or my phone, with no size limitation! I will repeat NO SIZE LIMITATION, I have heard of people with a TB+ of music using this application. Hands down this is the best software find for me in the last 3 years. If you have an iphone or android you can stream to your phone via 3G from your library off your home computer. I use my …

Member Avatar
Member Avatar
+0 forum 1

Hello everybody, I am looking for a good C++ midi API. I have written a program in C++ that needs to be able to export MIDI. So far I had written my own export function, but I feel that the complexities of low level midi coding will become to great for future more complicated (polyphonic, rythm changes, etc) music. So I am looking for a good C++ midi api. Ideally, I am looking for the following features: - eport to a midi file - import/play a midi file (optional) - export/view score (pref pdf), or even better, editable (but I …

Member Avatar
Member Avatar
+0 forum 1

The End.