play external .mp3 file

by Victor Hugo » Fri, 23 Apr 2010 00:18:00 GMT

Sponsored Links
 Hi people,

im playing a mp3 file on my emulador using
that code:

MediaPlayer mediaPlayer = Player.create(getApplicationContext(),

but i need play a mp3 file from my server

how do i to play that mp3 file????



play external .mp3 file

by Rog茅rio de Souza Moraes » Fri, 23 Apr 2010 00:43:15 GMT

 Hi Victor,

take a look at this tutorial. I think this is what you want. 



2010/4/22 Victor Hugo <>


Sponsored Links

play external .mp3 file

by Victor Hugo » Fri, 23 Apr 2010 03:04:48 GMT

 ty Rogrio

On 22 abr, 13:43, Rogrio de Souza Moraes <>

> >

Other Threads

1. Rounded Rectangle with one side missing

I am trying to find a way to create a rounded rectangle with one side
missing.  Something like this :


Currently, I am using a 9 patch, which works pretty well, but the
requirements just changed to allowing user changeable colors.   I've
spent the last few days trying to figure out a way to make this
happen, and have not managed to come up with a solution.

I found a post about changing the colors of an image in code, but it
won't work because I need the image to scale correctly when text is
written on it.  (Which is why I am currently using a 9-patch.)

Other posts talk about using shape XML, which gets me really close.
I can generate the tab the way I want, but I can't seem to find a way
to remove the line on the right side of the shape.

I have also looked at using the Path() class, but it seems that you
have to have a path that is fully enclosed.  This would work, except I
need a stroked line border with the area in the middle filled.   Which
basically puts me in the same situation as using the shape XML.

Has anyone done anything like this?  Or have any ideas that might help
me along?



2. Building kernel and loading with Emulator


    I am new to Android but i have experience with linux device
I want to finally write a driver and a small apllication to use this

For this first i wanted to first compile the kernel and load using the

Here is what i did.

1. Since I have 32 bit Ubuntu 10.10 installed on my laptop, I
downloaded Android 2.2 froyo platform code as Gingerbread and onwared
needs 64 bit linux.

$ repo init -u git:// -b
$ repo sync
$ source build/
$ lunch full-eng
$ make

I could successfully build this code.

2. Downloaded the kernel (2.6.36) code using
git clone git://

I could build this for ARM after changing task to tsk and disable DRM

make ARCH=arm CROSS_COMPILE=arm-eabi-

3. Now i am trying to load this kernel and load using the emulator

santosh@ubuntu: cd out/target/product/generic
santosh@ubuntu:~/out/target/product/generic$ emulator -kernel kernel/
arch/arm/boot/zImage -system system.img -ramdisk ramdisk.img -initdata
emulator: WARNING: ignoring locked user data image at /home/santosh/
emulator: WARNING: Another emulator is running. user data changes will
*NOT* be saved
emulator: ERROR: There is no user data image in your build directory.
Please make a full build

I got these above warnings when I used -data userdata.img option as

My questions are

1. Am i following the correct steps?
Do I need goldfish branch kernel or latest branch is ok?

Can you point me to any link/discussion on similar topic?

2. I have installed eclipse-SDK-3.6.2-win32 and latest android-sdk-
windows on my Windows vista laptop.
Can I copy the kernel image from my Ubuntu system to my Windows system
and test on windows emulator

android-sdk-windows\platforms\android-11\images has these files.

04/07/2011  09:19 PM         1,466,272 kernel-qemu
04/07/2011  09:19 PM           149,161 ramdisk.img
04/07/2011  09:19 PM       115,993,152 system.img
04/07/2011  09:19 PM         2,916,672 userdata.img

What files should i copy and from which locations?



3. how to make a boot-disk?

4. Conflict in to MapController between Zoom Level and AnimateTo ?

5. Invalidating a Canvas view that is part of setContentView()

6. Porting of OpenGL on powerpc board

7. Original posting