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