final CloudStorage cloud = CloudStorage.getInstance(); try{ id = cloud.uploadCloudFile("text/plain", path); }catch(CloudException io) { io.printStackTrace(); Dialog.show("CloudException", "Could not upload workout to the cloud, please try again later.", "OK", null); }catch(IOException i) { i.printStackTrace(); Dialog.show("IOException", "Could not upload workout to the cloud, please try again later.", "OK", null); }finally{ loading.dispose(); FileSystemStorage.getInstance().delete(path); }
I just assumed the free 2mb quota would work on the device too.
Like I said simulator works fine (apart from deleting) have uploaded and downloaded files many times. So maybe this is specific to Android? I don't have any other devices to test at the moment.