Xamarin Android read text or image files

preview_player
Показать описание
how to add file and read it
طريقة اضافة ملف وقراءة الملف سواء نصي صورة
الخطوات
1 Add file to project
2 Set Action Build=embedded resoruce
3 In code file name= namespace.FileName.FileType
Code:
//read image
//load image
img.Source = ImageSource.FromStream(() = ms);
or
//read file
var tmp = System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Page6)).Assembly;
//
System.IO.StreamReader sr = new System.IO.StreamReader(s);
//
txtnote.Text = sr.ReadToEnd();
Microsoft Visual Studio Professional 2019
#sql #microsoft #net #visualstudio
#WPF #csharp #android #xamarin
Рекомендации по теме
Комментарии
Автор

I was tryign to read a CSV file and had the logic down but couldn't get access to the file in android. about five lines of code after watching your video and it now makes sense... Thanks for sharing!!

truedaystar
Автор

YOU GREATEST PROGRAMMIST IN THE WORLD THANK YOU VERY MUCH FOR HELP OKE 🙏🙏🙏

genemcfall