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:
parent
5fd61467d8
commit
a3973324f4
|
@ -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>
|
2012-05-17 Santiago Munín <burning1@gmail.com>
|
||||||
|
|
||||||
* Core.java: Changed methods to static.
|
* Core.java: Changed methods to static.
|
||||||
|
|
|
@ -65,7 +65,6 @@ public class EventList extends ListActivity {
|
||||||
private MyAdapter la;
|
private MyAdapter la;
|
||||||
|
|
||||||
private PandroidEventviewerActivity object;
|
private PandroidEventviewerActivity object;
|
||||||
private Core core;
|
|
||||||
|
|
||||||
// private HashMap<Integer, Boolean> openedItem;
|
// private HashMap<Integer, Boolean> openedItem;
|
||||||
private HashMap<String, Bitmap> imgGroups;
|
private HashMap<String, Bitmap> imgGroups;
|
||||||
|
@ -85,7 +84,6 @@ public class EventList extends ListActivity {
|
||||||
Intent i = getIntent();
|
Intent i = getIntent();
|
||||||
this.object = (PandroidEventviewerActivity) i
|
this.object = (PandroidEventviewerActivity) i
|
||||||
.getSerializableExtra("object");
|
.getSerializableExtra("object");
|
||||||
this.core = (Core) i.getSerializableExtra("core");
|
|
||||||
|
|
||||||
setContentView(R.layout.list_view_layout);
|
setContentView(R.layout.list_view_layout);
|
||||||
|
|
||||||
|
@ -93,7 +91,7 @@ public class EventList extends ListActivity {
|
||||||
|
|
||||||
lv = (ListView) findViewById(android.R.id.list);
|
lv = (ListView) findViewById(android.R.id.list);
|
||||||
|
|
||||||
la = new MyAdapter(getBaseContext(), object, core);
|
la = new MyAdapter(getBaseContext(), object);
|
||||||
|
|
||||||
lv.setAdapter(la);
|
lv.setAdapter(la);
|
||||||
|
|
||||||
|
@ -228,6 +226,7 @@ public class EventList extends ListActivity {
|
||||||
* @return A bitmap of that image
|
* @return A bitmap of that image
|
||||||
*/
|
*/
|
||||||
private Bitmap downloadImage(String fileUrl) {
|
private Bitmap downloadImage(String fileUrl) {
|
||||||
|
Log.i(TAG, "Downloading image");
|
||||||
URL myFileUrl = null;
|
URL myFileUrl = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -239,7 +238,7 @@ public class EventList extends ListActivity {
|
||||||
InputStream is = conn.getInputStream();
|
InputStream is = conn.getInputStream();
|
||||||
return BitmapFactory.decodeStream(is);
|
return BitmapFactory.decodeStream(is);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.e(TAG, "Downloading image");
|
Log.e(TAG, "Downloading image: error");
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -349,8 +348,7 @@ public class EventList extends ListActivity {
|
||||||
|
|
||||||
public boolean showLoadingEvents;
|
public boolean showLoadingEvents;
|
||||||
|
|
||||||
public MyAdapter(Context c, PandroidEventviewerActivity object,
|
public MyAdapter(Context c, PandroidEventviewerActivity object) {
|
||||||
Core core) {
|
|
||||||
mContext = c;
|
mContext = c;
|
||||||
|
|
||||||
this.object = object;
|
this.object = object;
|
||||||
|
|
|
@ -58,7 +58,6 @@ public class PopupValidationEvent extends Activity {
|
||||||
|
|
||||||
Intent i = getIntent();
|
Intent i = getIntent();
|
||||||
this.id_event = i.getIntExtra("id_event", -1);
|
this.id_event = i.getIntExtra("id_event", -1);
|
||||||
// this.core = (Core)i.getSerializableExtra("core");
|
|
||||||
|
|
||||||
setContentView(R.layout.popup_validation_event);
|
setContentView(R.layout.popup_validation_event);
|
||||||
final Button button = (Button) findViewById(R.id.button_validate_event);
|
final Button button = (Button) findViewById(R.id.button_validate_event);
|
||||||
|
|
Loading…
Reference in New Issue