Asking Permission to Place a Call






android:resource="@xml/searchable" />
android:value=".LunchList" />





android:label="@string/app_name"
android:icon="@drawable/icon">

android:name="android.appwidget.action.APPWIDGET_UPDATE" />

android:name="android.appwidget.provider"
android:resource="@xml/widget_provider" />




Step #6: Dial the Number
Next, let us set up DetailForm with its own option menu that contains a Call
item. When chosen, we dial the phone number, assuming there is one.
First, create LunchList/res/menu/option_detail.xml with the following
content:


android:title="Call"
android:icon="@drawable/ic_menu_call"
/>

Then, add the following methods to DetailForm:
344
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
Précédent

- 377/447

Suivant