l_sizes and l_clothes seem to be valid

Let's see how to use them now !
This commit is contained in:
2012-11-13 18:20:53 +01:00
parent bb1dd58aee
commit 0960a57beb
4 changed files with 13 additions and 28 deletions

View File

@@ -87,7 +87,7 @@ public class FriendsProvider {
public String[] getFriends(){
String[] friends = context.getApplicationContext().fileList();
Boolean filter_friends = false;
Boolean filter_friends = true;
// xml filename to friendly name. Parses XML later on
ArrayList<String> new_friends = new ArrayList<String>();

View File

@@ -50,11 +50,11 @@ public class MainActivity extends Activity {
registerForContextMenu(list);
//ugly test
// gotta remove file first
//Adding listings
ClothesListingCreator clc = new ClothesListingCreator(this.getApplicationContext());
clc.create();
SizesListingCreator slc = new SizesListingCreator(this.getApplicationContext());
slc.create();
}

View File

@@ -6,6 +6,7 @@ package fr.lengrand.knowmysize;
import java.util.ArrayList;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
@@ -111,28 +112,28 @@ class SizeXML{
@Attribute(name="id")
private int id;
@Attribute(required=false)
@Element(required=false)
private String BASE;
@Attribute(required=false)
@Element(required=false)
private String EU;
@Attribute(required=false)
@Element(required=false)
private String RU;
@Attribute(required=false)
@Element(required=false)
private String US;
@Attribute(required=false)
@Element(required=false)
private String DE;
@Attribute(required=false)
@Element(required=false)
private String UK;
@Attribute(required=false)
@Element(required=false)
private String IT;
@Attribute(required=false)
@Element(required=false)
private String FR;
public SizeXML(){

View File

@@ -291,22 +291,6 @@ public class SizesListingCreator {
Log.e(TAG, "Impossible to write " + XML_FILE + " " + e1);
}
}
// try{
// //reading back
// FileInputStream reader = context.getApplicationContext().openFileInput(XML_FILE);
// int content;
// while ((content = reader.read()) != -1) {
// // convert to char and display it
// Log.v(TAG, Character.toString((char) content));
// }
// reader.close();
//
// }
// catch(Exception e){
// Log.e(TAG, "Impossible to read file");
// }
//
// Log.v(TAG, "Finished!");
}
}