Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2><strong>Use DialogFragment over AlertDialog:</strong></h2> <hr> <ul> <li><p><strong>Since the introduction of API level 13</strong>: </p> <p>the <a href="http://developer.android.com/reference/android/app/Activity.html#showDialog%28int,%20android.os.Bundle%29">showDialog</a> method from Activity is <em>deprecated</em>. Invoking a dialog elsewhere in code is not advisable since you will have to manage the the dialog yourself (e.g. orientation change).</p></li> <li><p><strong>Difference DialogFragment - AlertDialog</strong></p> <p>Are they so much different? From Android reference regarding <a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a>: </p> <blockquote> <p>A DialogFragment is a fragment that displays a dialog window, floating on top of its activity's window. This fragment contains a Dialog object, which it displays as appropriate based on the fragment's state. Control of the dialog (deciding when to show, hide, dismiss it) should be done through the API <a href="http://developer.android.com/reference/android/app/DialogFragment.html">here</a>, not with direct calls on the dialog.</p> </blockquote></li> <li><p><strong>Other notes</strong></p> <ul> <li>Fragments are a natural evolution in the Android framework due to the diversity of devices with different screen sizes. </li> <li>DialogFragments and Fragments are made available in the support library which makes the class usable in all current used versions of Android.</li> </ul></li> </ul>
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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