Tag: xamarin.forms

2020.09.01.

Xamarin.Forms send and receive SMS

This project you can find it at: https://github.com/officialdoniald/Xamarin.Forms.SendAndReceiveSMS We can easily send SMS from various platforms, but we can’t read SMSs so easily. Android: Receive SMS: In Android we can send and receive/read SMSs with just few line of code. We have to implement a BroadcastReceiver and gain permission in the AndroidManifest.xml. 1. AndroidManifest.xml(https://github.com/officialdoniald/Xamarin.Forms.SendAndReceiveSMS/blob/master/SendAndReceiveSMS/SendAndReceiveSMS.Android/Properties/AndroidManifest.xml): We have to gain permission to RECEIVE_SMS, READ_SMS, SEND_SMS and WRITE_SMS. […]

2020.09.01.

Xamarin.Forms using Mqtt

We can using of course mqtt in Xamarin.Form via dependency service / Xamarin.Forms.MessagingCenter, event or simply create a class instance. We are following the last option. First step, we need to install the MQTTnet NuGet Package for the Solution. (So in each project.) .NET Standard Library: We need to create an MqttClientRepository class in the .NET Standard Library. Next step the platform specific implementations. Android: […]

2020.09.01.

Xamarin.Forms change ListView SelectedItemColor

This project you can find at: https://github.com/officialdoniald/Xamarin.Forms.ChangeListviewSelectedColor We have to create a Custom Renderer for a ViewCell. So let’s create a class in the .NET Standard,/PCL Project: https://github.com/officialdoniald/Xamarin.Forms.ChangeListviewSelectedColor/tree/master/Xamarin.Forms.ChangeLvSelectedColor/Xamarin.Forms.ChangeLvSelectedColor/CustomControl/ListViewCustomViewCell.cs/ We created a property for the SelectedItem’s color. Don’t forget: this enum is a cutom enum, we have to create it: https://github.com/officialdoniald/Xamarin.Forms.ChangeListviewSelectedColor/blob/master/Xamarin.Forms.ChangeLvSelectedColor/Xamarin.Forms.ChangeLvSelectedColor/Helper/Enums.cs Let’s create the platform specific code. Android: we have to change the Android’s Theme at […]