X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/c2e3ce7c00767b2edb093c6c7df0f70cce279de8..a038e0c55b6e5c625f364b63d5a5e6c376bb1569:/src/eu/alefzero/owncloud/OwnCloudMainScreen.java diff --git a/src/eu/alefzero/owncloud/OwnCloudMainScreen.java b/src/eu/alefzero/owncloud/OwnCloudMainScreen.java index 65592b19..c89672ce 100644 --- a/src/eu/alefzero/owncloud/OwnCloudMainScreen.java +++ b/src/eu/alefzero/owncloud/OwnCloudMainScreen.java @@ -278,18 +278,9 @@ public class OwnCloudMainScreen extends ListActivity { } getListView().invalidate(); } else { - try { Intent i = (Intent) getListAdapter().getItem(position); if (i.hasExtra("toDownload")) { - Uri data = Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() + "/owncloud/filename"); - Log.d("DUPA", data.toString()); - File f = new File(data.toString()); - FileInputStream fis = new FileInputStream(f); - byte buffer[] = new byte[512]; - fis.read(buffer); - Log.d("DUPA", new String(buffer)); - 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); @@ -301,13 +292,7 @@ public class OwnCloudMainScreen extends ListActivity { startActivity(i); }*/ } - } catch (ClassCastException e) {} catch (FileNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } + } }