我有一个上传到Dropbox的文件我只想从我的Android应用程序编辑它。我不想下载它。文件是json formate的形式。 E.g我有一个文件名“Add”Formate:
{"slots":[ {"slotid":"2b","updatetime":1477650798,"active":true,"adurl":"https:\/\/play.goo gle.com\/store\/apps\/details?id=com.MoversGames.DriftCarSimulatorExtremeDriving","imgurl":"https://i.imgur.com/oRHNKN0.jpg","hd":"false","x":0,"y":0},
{"slotid":"1a","updatetime":1477650727,"active":true,"adurl":"https:\/\/play.google.com\/store\/apps\/details?id=com.MoversGames.RCCarRacing","imgurl":"https://i.imgur.com/sF5IrDe.jpg","hd":"false","x":0,"y":0}],"containers":[]}
是上传到Dropbox上的。我只是想通过我的Android应用程序编辑它。
注意:我想从我的Android应用程序在线编辑它
要使用Android的Dropbox API,您应该使用the Dropbox API v2 Java SDK。有an example Android app here。
Dropbox API不提供直接编辑Dropbox上特定文件的方法;你需要上传整个新版本,例如,使用the upload
method。