I’m implementing the ability to upload and download files to Dropbox. I have it working in the emulator and on iOS. On android, I can download files but not upload. I am testing on a Galaxy 3.
I’ve seen a previous thread on this topic and in that thread Joshua Quick said this is often caused by a header problem in the put request. Based on that advice my url looks like this:
[lua]local url = “https://api-content.dropbox.com/1/files_put/auto/” … path … “?” … authString … “&progress=upload&overwrite=false&accept=*/*&accept-charset=*&accept-language=en-us&accept-encoding=”[/lua]
I realize I can put the headers in a table, but like I said, this construction works just fine on iOS, I’m just trying to make Android happy.
I also have these permissions in the build file:
“android.permission.INTERNET”,
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.ACCESS_NETWORK_STATE”,
The terminal on this G3 is super spammy but I’m pretty sure this is the right error:
Permission Denial: opening provider com.google.android.gsf.gservices.GservicesProvider from ProcessRecord{4471b0e8 25480:com.mycomp.myapp/000000} (pid=00000, uid=00000) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES
Any idea what might be causing that error?
[edit] I should note that this app is live and that I’m side loading the test app. Since I added the additional permissions (already had internet) I did not see a prompt to allow the app to have the permissions. Maybe this is normal but I’m not sure. The previous article I referenced above is here: http://forums.coronalabs.com/topic/32967-networkrequest-failing-on-android-over-ssl/