downloading file, to a fixed name file
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / OwnCloudMainScreen.java
index 614058b..65592b1 100644 (file)
@@ -290,8 +290,8 @@ public class OwnCloudMainScreen extends ListActivity {
           fis.read(buffer);
           Log.d("DUPA", new String(buffer));
           
-          //Intent intent = new Intent(this, FileDownloader.class);
-          /*intent.putExtra(FileDownloader.EXTRA_FILE_PATH, "/docsy.py");
+          Intent intent = new Intent(this, FileDownloader.class);
+          intent.putExtra(FileDownloader.EXTRA_FILE_PATH, "/"+((TextView)findViewById(R.id.textView1)).getText().toString());
           intent.putExtra(FileDownloader.EXTRA_ACCOUNT, mAccount);
           startService(intent);
           /*