简体   繁体   English

Android-Acra 5动态URI

[英]Android - Acra 5 dynamic uri

I want to ask if there is any way to change the report URI dynamically. 我想问一下是否有任何方法可以动态更改报告URI For instance, user change server and then I want to change Acra URI . 例如,用户更改服务器,然后我要更改Acra URI I didn't find anything about it in Acra wiki nor any other sources. 我在Acra Wiki或任何其他来源中都找不到任何有关它的信息。 ACRA.getConfig() etc. are no longer available. ACRA.getConfig()等不再可用。

You can use a custom ReportSenderFactory . 您可以使用自定义ReportSenderFactory HttpSender has a constructor parameter which accepts an URI , which you can load eg from preferences. HttpSender有一个接受URI的构造函数参数,您可以从URI中加载它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM