I wanted to know in what language has the desktop application of Dropbox been coded? 
Is it Python or Ruby?
['https://Stackoverflow.com/questions/11289956', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1495471/']
First thing, your `AndroidManifest.xml` file is correct. So no need to correct that. Though I would recommend organizing your permissions in one place.

### Writing File to Internal Storage

```
FileOutputStream fOut = openFileOutput("myinternalfile.txt",MODE_WORLD_READABLE);
OutputStreamWriter osw = new OutputStreamWriter(fOut);

//---write the contents to the file---
osw.write(strFileData);
osw.flush();
osw.close();

```

### Writing File to External SD Card

```
//This will get the SD Card directory and create a folder named MyFiles in it.
File sdCard = Environment.getExternalStorageDirectory();
File directory = new File (sdCard.getAbsolutePath() + "/MyFiles");
directory.mkdirs();

//Now create the file in the above directory and write the contents into it
File file = new File(directory, "mysdfile.txt");
FileOutputStream fOut = new FileOutputStream(file);
OutputStreamWriter osw = new OutputStreamWriter(fOut);
osw.write(strFileData);
osw.flush();
osw.close();

```

**Note: If running on an emulator, ensure that you have enabled SD Card support in the AVD properties and allocated it appropriate space.**
Replace this lines 

```
File myFile = new File("sdcard/mysdfile.txt");
if(!myFile.exists()){
  myFile.mkdirs();
 }
myFile = new File("sdcard/mysdfile.txt");

```

with

//Saving the parsed data.........

```
File myFile = new File(Environment.getExternalStorageDirectory()+"/mysdfile.txt");
myFile.createNewFile();

```