Commit 5796611ff2f6a9b1504d222aa3598d19ada39505

Authored by Imanol-Mikel Barba Sabariego
1 parent 5142a6c1

--no commit message

src/com/upc/pbe/upcnews/MainActivity.java
1 package com.upc.pbe.upcnews; 1 package com.upc.pbe.upcnews;
2 2
  3 +import java.io.File;
3 import android.app.Activity; 4 import android.app.Activity;
4 import android.content.Intent; 5 import android.content.Intent;
5 import android.os.Bundle; 6 import android.os.Bundle;
@@ -23,6 +24,8 @@ public class MainActivity extends Activity implements OnClickListener { @@ -23,6 +24,8 @@ public class MainActivity extends Activity implements OnClickListener {
23 super.onCreate(savedInstanceState); 24 super.onCreate(savedInstanceState);
24 setContentView(R.layout.main_activity); 25 setContentView(R.layout.main_activity);
25 Log.d(TAG, "onCreated"); 26 Log.d(TAG, "onCreated");
  27 + File tempFolder = new File(((UpcApp)getApplication()).getLocalPath());
  28 + tempFolder.mkdirs();
26 buttonDescarrega = (ImageButton) findViewById(R.id.button); 29 buttonDescarrega = (ImageButton) findViewById(R.id.button);
27 buttonDescarrega.setOnClickListener(this); 30 buttonDescarrega.setOnClickListener(this);
28 this.getUrl(); 31 this.getUrl();