Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
1)查找每次发送到服务器的 GPS 值。2)现在我想将它存储在 SQLite DB 上,然后在单个帖子中将多个参数发送到服务器。我的问题是(1)或(2)哪一个是有效的,哪一个消耗更多的电池电量等......
第二总是最好的,因为您不必多次发布,而且效率很高!您可以将其作为 JSON 或 XML 之类的有效负载发送,一次性发送所有数据。