J'ai trouvé htc g7 ne peut pas supporter le symbole 'a' de SimpleDateFormat. Donc je ne peux pas analyser la date de manière opportune. Par exemple: le code: *htc g7 os2.2 ne peut pas supporter le symbole 'a' de SimpleDateFormat
SimpleDateFormat sdf2 = new SimpleDateFormat("MM/dd/yy hh:mm a");
String d2 = "12/15/10 6:30 PM";
try{
sdf2.parse(d2);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
*
test dans le simulateur, c'est ok. Mais exécuté sur mon téléphone, Il se produira le ParseException.
Mon téléphone HTC G7 OS2.2