阅读背景:

如何在android应用的REST API代码中使用字符串?

来源:互联网 

I'm building an Android app to that consumes a REST API. I'm using OkHttp and the API I'm hitting requires an API key. I thought it would be best practice to store my API key in my strings.xml file. I also thought it was a best practice to not include Android sdk specific code, now I'm realizing these two thoughts might be conflicting.I'm building an Android app to that consumes a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: