From cae4a18d6b3b5fa2cf342b7bd94d0ebf668a498d Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Sat, 8 Dec 2012 19:45:23 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/MainActivity.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/upc/pbe/upcnews/MainActivity.java b/src/com/upc/pbe/upcnews/MainActivity.java index 89d3beb..7651947 100644 --- a/src/com/upc/pbe/upcnews/MainActivity.java +++ b/src/com/upc/pbe/upcnews/MainActivity.java @@ -24,12 +24,10 @@ public class MainActivity extends Activity implements OnClickListener { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); Log.d(TAG, "onCreated"); - Log.d(TAG,((UpcApp)getApplication()).getLocalPath()); File tempFolder = new File(((UpcApp)getApplication()).getLocalPath()); - boolean success = tempFolder.mkdirs(); - if(success) + if(tempFolder.mkdirs()) { - Log.d(TAG,"Directory created"); + Log.d(TAG,"Directory " + tempFolder.toString() + " created"); } buttonDescarrega = (ImageButton) findViewById(R.id.button); buttonDescarrega.setOnClickListener(this); -- libgit2 0.22.2