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);