Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

MEDIA PLAYER PROBLEM

$
0
0

I began a new Xamarin Studio Android application. C#-Android Application.

The app has a menu and you can choose which song you want to play. The problem is that when I process the app I get a message:

"Object reference not set to an instance of an object" - It refers to MediaPlayer player;

The problem is that the player is a null object because I have in the creation a message:

Android.Media.MediaPlayer Unknown identifier: Android

The using statements are:

using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Android.Media;

Where is the mistake? The systems doesn't recognize the MediaPlayer and I'm fool whith this...

Please tell me something about. Thanks.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>