大神们, Android 项目里面的大批项目接口 url 你们都是怎么存储的呢?

2016-03-19 01:51:47 +08:00
 DendimoN
Android 小白一枚。。 Java 没有预处理命令,目前很头大。。
7591 次点击
所在节点    Android
8 条回复
scutmason
2016-03-19 02:09:21 +08:00
楼主,你知道 retrofit 吗
zhaohui318
2016-03-19 07:39:50 +08:00
static final
nocoo
2016-03-19 08:45:04 +08:00
一个 Constants 文件,里面都是 static final String
ldehai
2016-03-19 09:00:27 +08:00
twoyuan
2016-03-19 10:36:11 +08:00
retrofit 里直接写
nashxk
2016-03-19 13:07:09 +08:00
同推荐 Retrofit ,直接 2.0 起步,不要用 1.x 了。
DendimoN
2016-03-19 13:43:11 +08:00
@scutmason
@twoyuan
@nashxk 谢谢推荐 Retrofit !

@ldehai
@nocoo
@zhaohui318 这种方式也不错,谢谢!
ppwangs
2016-03-19 14:09:48 +08:00
我们是服务器下发

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/264641

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX