Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Problem With Play Background Music in Android Application
Problem With Play Background Music in Android Application [message #1702096] Sun, 19 July 2015 13:15
abo zar is currently offline abo zarFriend
Messages: 1
Registered: July 2015
Junior Member
hello dear friends. i have a really problem with my eclipse:

i write a code but execute music 2 times simultaneously. but i need music execute one time. this is my code: please help me

protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.aboutus);

		 if (mPlayer != null){
			 mPlayer.stop();
		        if (isFinishing()){
		        	mPlayer.stop();
		        	mPlayer.release();
		        }
		    }
		        mPlayer = MediaPlayer.create(aboutus.this, R.raw.nelflute);
		        mPlayer.start();
    }  
Previous Topic:change the content of debug view in eclipse
Next Topic:Is there a method similar to the NetBeans TreeUtilities.getUncaughtExceptions() method?
Goto Forum:
  


Current Time: Tue Oct 23 15:39:47 GMT 2018

Powered by FUDForum. Page generated in 0.03690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top