2012-05-21 Santiago Munin <burning1@gmail.com>

* EventList.java, PopupValidationEvent.java: Removed references to Core as an object.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6329 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
santimunin 2012-05-21 18:07:59 +00:00
parent 5fd61467d8
commit a3973324f4
3 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,15 @@
2012-05-21 Santiago Munín <burning1@gmail.com>
* EventList.java, PopupValidationEvent.java: Removed references to Core as an object.
2012-05-19 Santiago Munín <burning1@gmail.com>
* AlarmReceiver.java: Removed. Now it's the service which will retrieve data.
* Core.java: The method of setting periodically data retrieval was changed.
Now, the AlarmManager will launch the Service instead of BroadcastReceiver.
* PandroidEventviewerService.java: Every time it receives a call from the AlarmManager, will search for new events.
* Most of files have little changes to adapt the new data retrieval subsystem.
2012-05-17 Santiago Munín <burning1@gmail.com>
* Core.java: Changed methods to static.

View File

@ -65,7 +65,6 @@ public class EventList extends ListActivity {
private MyAdapter la;
private PandroidEventviewerActivity object;
private Core core;
// private HashMap<Integer, Boolean> openedItem;
private HashMap<String, Bitmap> imgGroups;
@ -85,7 +84,6 @@ public class EventList extends ListActivity {
Intent i = getIntent();
this.object = (PandroidEventviewerActivity) i
.getSerializableExtra("object");
this.core = (Core) i.getSerializableExtra("core");
setContentView(R.layout.list_view_layout);
@ -93,7 +91,7 @@ public class EventList extends ListActivity {
lv = (ListView) findViewById(android.R.id.list);
la = new MyAdapter(getBaseContext(), object, core);
la = new MyAdapter(getBaseContext(), object);
lv.setAdapter(la);
@ -228,6 +226,7 @@ public class EventList extends ListActivity {
* @return A bitmap of that image
*/
private Bitmap downloadImage(String fileUrl) {
Log.i(TAG, "Downloading image");
URL myFileUrl = null;
try {
@ -239,7 +238,7 @@ public class EventList extends ListActivity {
InputStream is = conn.getInputStream();
return BitmapFactory.decodeStream(is);
} catch (IOException e) {
Log.e(TAG, "Downloading image");
Log.e(TAG, "Downloading image: error");
}
return null;
}
@ -349,8 +348,7 @@ public class EventList extends ListActivity {
public boolean showLoadingEvents;
public MyAdapter(Context c, PandroidEventviewerActivity object,
Core core) {
public MyAdapter(Context c, PandroidEventviewerActivity object) {
mContext = c;
this.object = object;

View File

@ -58,7 +58,6 @@ public class PopupValidationEvent extends Activity {
Intent i = getIntent();
this.id_event = i.getIntExtra("id_event", -1);
// this.core = (Core)i.getSerializableExtra("core");
setContentView(R.layout.popup_validation_event);
final Button button = (Button) findViewById(R.id.button_validate_event);