hi guys this code is not working what i should do ?I want to receive from intent a string but it is not print in text view ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

hi guys this code is not working what i should do ?I want to receive from intent a string but it is not print in text view ?

text = FindViewById<TextView>(Resource.Id.textView2); string extraData = Intent.GetStringExtra("link"); text.Text = extraData.ToString();

2nd Jan 2019, 12:13 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
1 Resposta
0
Ive messed with Xamarin for a few weeks and never encountered code that looks like this. Maybe this is platform specific code? Xamarin heavily uses the MVVM (Model, View, View-Model) design pattern and youā€™re meant to fully immerse yourself in the MVVM headspace. Itā€™s very confusing at first but very natural once you practice. Your form data should be dynamically bound to data in your class without any manual callback intervention. I recommend making a new Xamarin.Forms project and select one of the templates provided. Really pay attention to how they structure the data pipeline for the Item object. Like I said it is very confusing at firstā€”its the Name of the Game when it comes to Xamarin. cheers!
3rd Jan 2019, 4:20 AM
Sean Patrick Franklin
Sean Patrick Franklin - avatar