create the raw folder in the layout folder and put the music file and
use the following code....
MediaPlayer player;
Intent msvc=new Intent(this,Music.class);
startService(msvc);
player = MediaPlayer.create(this, R.raw.se); // se is
the name of music file which is placed in the raw folder
player.setLooping(true); // Set looping
player.setVolume(100,100);
player.start();
On Mar 2, 1:57 pm, ThaMe90 <[email protected]> wrote:
> Bump...
>
> On 28 feb, 09:06, ThaMe90 <[email protected]> wrote:
>
>
>
>
>
>
>
> > Anybody got an idea about this?
>
> > On 25 feb, 12:51, ThaMe90 <[email protected]> wrote:
>
> > > I don't think so... I use API level 8 to develop... So I doubt this is
> > > the issue...
>
> > > On 25 feb, 12:15, blindfold <[email protected]> wrote:
>
> > > > You should be getting sound from the emulator by default on Windows 7,
> > > > but maybe issue
> > > > 14953http://code.google.com/p/android/issues/detail?id=14953
> > > > affects you too?
>
> > > > On Feb 24, 11:03 am, ThaMe90 <[email protected]> wrote:
>
> > > > > Hello all, I wonder how to turn on the sound in the Android Emulator?
> > > > > I've 2 headsets connected to my pc, but I can't seem to get sound on
> > > > > either of them (One is connected through USB, the other through a
> > > > > 3.5mm Jack). I've set the AVD I use to enable Audio Input & Output,
> > > > > and I have set the start-up option -audio "winaudio". But I still
> > > > > can't hear anything...
>
> > > > > I am working with Eclipse, and I'm running Windows7 32bit OS.
>
> > > > > I've searched all over the internet, but all threads (as cryptic and
> > > > > short they may be) all address to this issue on Linux systems...
> > > > > Haven't been able to find anything on Windows systems though.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en