Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

using Andriod.OS

Hello,

I wish to save a text file to the external storage of an Android device. I understand that I must use a similar syntax to "Android.OS.Environment.ExternalStorageDirectory". However, Android.OS is not recognised and I am unable to include it with "using Android.OS" and I have no idea why.

I have created a new Xamarin.Forms application and have my methods setup in the MainPage.cs file. I see that the using.Android stuff is in the MainActivity file so why cant I use them in the MainPage file?

Tagged:

Answers

Sign In or Register to comment.