validation of a date in a form varies with phone?
<p>hi in my application i have a form which contains an edittext, i have used this edittext to enter a date. I used datepicker to do that. And now i am validating the date as if the user cannot enter future date.I have used the following code,</p>

<pre><code>    Calendar objCalendar = Calendar.getInstance();
    editTextDate.setOnClickListener(new View.OnClickListener()
    {
public void onClick(View v) 
    {
new DatePickerDialog(AddExpenses.this, objFromDatePicker,
objCalendar.get(Calendar.YEAR), objCalendar
.get(Calendar.MONTH), objCalendar.get(Calendar.DAY_OF_MONTH)).show();
}
});
    DatePickerDialog.OnDateSetListener objFromDatePicker = 
    new DatePickerDialog.OnDateSetListener() 
    {   
public void onDateSet(DatePicker view, int year, int monthOfYear,
int dayOfMonth) 
    {
Calendar objCalendar = Calendar.getInstance();
objCalendar.set(Calendar.YEAR, year);
objCalendar.set(Calendar.MONTH, monthOfYear);
objCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);
updateFromDate(objCalendar);
}
};
public void updateFromDate(Calendar objCalendar) 
    {
editTextDate.setText(objDateFormat.format(objCalendar.getTime()));
}
    currentDayDate=objCalendar.getTime();
    String editTextData = editTextDateDate.getText().toString();
    SimpleDateFormat objFormat = new SimpleDateFormat("MM/dd/yy");
    Date parsedDate = null;
    String READYTOGOWITHDATE = null;
    try {
    parsedDate = objFormat.parse(editTextData);
    } catch (ParseException e) {
    }
if(parsedDate.after(currentDayDate))
{
    String message="entered date should not exceed current date";
    displayDialog(message);
}
else
{
    ............
}
</code></pre>

<p>Everything works fine with my HTC wildfire s,Motorolla Atrix and samsung galaxy tab.But i got complaints from users using huawei phone and Sony ericsson xperia X10 mini that when they are entered current date or any date in the current year, dialog is getting displayed with a message "entered date should not exceed current date". Can i know why is this happening? this problem is not getting replicated in all mobiles, can anyone help me on this? </p>
