I'm trying to upload a NEW .txt file to my Dropbox folder from my android app. Whatever I do it keeps saying that the file or directory doesn't exist. What am I doing wrong here?
When the user clicks a button in my view I would like to create a new file into my Dropbox folder. The dropbox folder its path is Dropbox\Apps\myApp In the directory myApp I would like to add a new txt file with for example the text "this is my new file." in it.
 public  void fileButtonClick(View v){
        FileInputStream inputStream = null;
         try {
             File file = new File("/Apps/Finance+");
             inputStream = new FileInputStream(file);
             Entry newEntry = mDBApi.putFile("/file.txt", inputStream,
                     file.length(), null, null);
         } catch (Exception e) {
             System.out.println("Something went wrong: " + e);
         } finally {
             if (inputStream != null) {
                 try {
                     inputStream.close();
                 } catch (IOException e) {}
             }
         }
    }
Can anybody tell me what I am doing wrong and how I can find the correct path / option to make a new file?
Thanks Yenthe
 
     
    