E-mail to Android



  • Good afternoon! I'm writing an annex under Android with Xamarin.Android. Since errors may occur in the annex, it would be interesting to know that this is a mistake when and how it happened, etc. I'd like to send information on them to email if they arise. Let's just say, using a log4net library, it's very simple. Unfortunately, Xamarin applications do not support the use of this library. Maybe someone knows how to do this without writing their bikes to log? How does that even work in Android applications? Thank you.



  • As an option to write to the System itself.Net.Mail.SmtpClient. If there's a network to send at once, and if it doesn't keep and send when it comes. Of course it's not a very good option, because you're gonna have to hand-held mistakes.

    try
    {
      //Ваш код
    }
    catch (Exception e)
    {
      //Метод отправки или сохранения логов
    }
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2