android错误日志收集起来发送到邮箱

  • 这个地方需要改称自己的账号和密码 / transport.connect("smtp.163.com", "18800563472@163.com", "*******");
    transport.send(message);
    transport.close();
    } catch (Exception e) { throw new RuntimeException();//将此异常向上抛出,此时CrashHandler就能够接收这里抛出的异常并最终将其存放到txt文件中

https://blog.csdn.net/u012483116/article/details/50948552