Simple solutions built using Xamarin.Android. I hope to provide some interesting code snippets for Xamarin Android. Most of these have a single button and give output on a toast message. Targetted framework for all these solutions are Android 4.4 and above.
- BatteryPercentage - This uses
BatteryManager
class to find the remaining juice in the device. The % of juice is shown as a toast message on button click. learn more - ControllRinger - First of all sorry for the bad typo, this should be ControlRinger. This uses
AudioManager
class inAndroid.Media
namespace to increase / decrease volumes of ringer, alarm, media & etc. and set device to vibration or silent modes. learn more - CountLines - Android doesn't come with a easy method to count line in a
TextView
so I made this sample for that. learn more - LightSensor - This uses
SensorManager
class fromAndroid.Hardware
namespace to retrive ambient light level from sensor and the button click shows a toast message with the name of the vendor the sensor. learn more - TwitterXAuth - There are plenty of examples available for connection twitter with Xamarin app but none of them feature the XAuth functionality. This project uses Twitter4J component to get conencted with Twitter via XAuth. learn more
- PhoneDialerAndMessaging - This sample is implemented to easily understand how to make calls, send sms with sms intent and without it and send emails.