On Aug 22, 2011, at 11:27 AM, shaked949 wrote:
> Firstly,I'm using visual studio 2010 ultimate-mono for android.
> i want to ask if i can add an audio/voice file to my application.
> my application's idea is based on voice files...

Yes. You could place the files into your file into the Resources\raw folder and 
set the Build action to AndroidResource, then use e.g. MediaPlayer:

        var player = Android.Media.MediaPlayer.Create (this, 
Resource.Raw.ResourceName);

Alternatively you can embed the file as an Asset (copy into Assets folder, set 
Build action to AndroidAsset) and use Asset.Open().

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to