Note that there are some explanatory texts on larger screens.

plurals
  1. POSimon Ics Date Picker Dialog throws android.view.InflateException: Binary XML file line #20: Error inflating class net.simonvt.widget.DatePicker
    primarykey
    data
    text
    <p>I'm using Simon's ICS Date Picker Library (<a href="https://github.com/SimonVT" rel="nofollow">https://github.com/SimonVT</a>) in my android app. I have a date button, if I make click on that button, it will show ics datepicker in dialog. My Issue is, if I click on button, it doesn't show datepicker dialog, but it shows following error as :</p> <pre><code>03-02 10:46:59.521: E/AndroidRuntime(911): android.view.InflateException: Binary XML file line #20: Error inflating class net.simonvt.widget.DatePicker 03-02 10:46:59.521: E/AndroidRuntime(911): at android.view.LayoutInflater.createView(LayoutInflater.java:606) 03-02 10:46:59.521: E/AndroidRuntime(911): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680) 03-02 10:46:59.521: E/AndroidRuntime(911): at android.view.LayoutInflater.inflate(LayoutInflater.java:466) 03-02 10:46:59.521: E/AndroidRuntime(911): at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 03-02 10:46:59.521: E/AndroidRuntime(911): at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 03-02 10:46:59.521: E/AndroidRuntime(911): at net.simonvt.app.DatePickerDialog.&lt;init&gt;(DatePickerDialog.java:103) 03-02 10:46:59.521: E/AndroidRuntime(911): at net.simonvt.app.DatePickerDialog.&lt;init&gt;(DatePickerDialog.java:74) @Override protected Dialog onCreateDialog(int id) { switch (id) { case START_DATE_PICKER_ID: mCalendar.setTimeInMillis(mStartMillis); year = mCalendar.get(Calendar.YEAR); monthOfYear = mCalendar.get(Calendar.MONTH); dayOfMonth = mCalendar.get(Calendar.DAY_OF_MONTH); return new DatePickerDialog(ListPillBoxActivity.this, startPillBoxDateListener, year, monthOfYear, dayOfMonth); case END_DATE_PICKER_ID: mCalendar.setTimeInMillis(mEndMillis); year = mCalendar.get(Calendar.YEAR); monthOfYear = mCalendar.get(Calendar.MONTH); dayOfMonth = mCalendar.get(Calendar.DAY_OF_MONTH); return new DatePickerDialog(ListPillBoxActivity.this, endPillBoxDateListener, year, monthOfYear, dayOfMonth); } return null; } </code></pre> <p>Bug pointed towards the following line on both cases :</p> <pre><code> return new DatePickerDialog(ListPillBoxActivity.this, startPillBoxDateListener, year, monthOfYear, dayOfMonth); </code></pre> <p>every parameters is passed correctly to the datePickerDialog, but there is an issue in inflating dialog</p> <p>Any Help Appreciated....</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload