From 5796611ff2f6a9b1504d222aa3598d19ada39505 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Sat, 8 Dec 2012 19:16:09 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/MainActivity.java | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/src/com/upc/pbe/upcnews/MainActivity.java b/src/com/upc/pbe/upcnews/MainActivity.java index 869bda0..a2f3513 100644 --- a/src/com/upc/pbe/upcnews/MainActivity.java +++ b/src/com/upc/pbe/upcnews/MainActivity.java @@ -1,5 +1,6 @@ package com.upc.pbe.upcnews; +import java.io.File; import android.app.Activity; import android.content.Intent; import android.os.Bundle; @@ -23,6 +24,8 @@ public class MainActivity extends Activity implements OnClickListener { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); Log.d(TAG, "onCreated"); + File tempFolder = new File(((UpcApp)getApplication()).getLocalPath()); + tempFolder.mkdirs(); buttonDescarrega = (ImageButton) findViewById(R.id.button); buttonDescarrega.setOnClickListener(this); this.getUrl(); -- libgit2 0.22.2