Analise o arquivo Plist do Android
Olá Estou tentando analisar um arquivo plist que contém matriz de dict. Estou tentando fazer isso usandoxmlwise. O conteúdo do arquivo plist éaqui
Até agora, eu só tenho isso em minha atividade e estou obtendo o conteúdo do plistfile, mas como analisar o conteúdo em uma lista de matrizes?
Map<String, Object> properties = null;
try {
InputStream inputStream = getResources().openRawResource(R.raw.first_5);
BufferedReader br = null;
try {
br = new BufferedReader(new InputStreamReader(inputStream));
StringBuilder sb = new StringBuilder();
String line;
while ((line = br.readLine()) != null) {
sb.append(line);
}
properties = Plist.fromXml(sb.toString());
// TODO do something with the object here
Log.v("--", properties.values() + " " + properties.size());
Log.v("--", "OB "+properties.get());
} catch (Exception e) {
e.printStackTrace();
} finally {
br.close();
}
}