I have an application built that works for checking DND Status, it has an edittext field and a button. In edittext the user enters a mobile number and on click of button I want to check the DND status of in android. How to check DND status of a mobile number?
<EditText
android:id="@+id/edtNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/txtHeading"
android:layout_centerHorizontal="true"
android:ems="10"
android:inputType="number"
android:maxLength="12">
<requestFocus />
</EditText>
<Button
android:id="@+id/btnCheckCheckDND"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/edtNumber"
android:layout_centerHorizontal="true"
android:text="Check Status"
/>